Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty items in response from search_api_fulltext #186

Open
joakimlindblad opened this issue Sep 3, 2021 · 4 comments
Open

Empty items in response from search_api_fulltext #186

joakimlindblad opened this issue Sep 3, 2021 · 4 comments
Assignees
Labels
Waiting for deployment solved, but not on production yet website dev To be done on css, js, configuration etc.. and git tracked

Comments

@joakimlindblad
Copy link

When using full text search, in GUI or API, empty items are appearing in the response.
See examples below:

Search for "visualization", empty item with score 5 after "Paintera", and item with score 4 two lines further down.
http://biii.eu/search?search_api_fulltext=visualization
image

Same search with JSON export, empty item highlighted:
http://biii.eu/searchjsonexport?search_api_fulltext=(?=visualization)&_format=json
image

@PerrineGilloteaux
Copy link
Member

PerrineGilloteaux commented Sep 3, 2021

I believe it is because it is cnfigured to return also non software entries , and that the table view than does not have the same field to display (such as dataset or training material, which does not have th field title for example with the exact same machine identifier as for software entries. Two solutions here: either editing the view such that it is restricted to software entries, either adding the matching field for dataset and training so they would appear formatted the same way.

@joakimlindblad
Copy link
Author

for the biii gui I suggest the latter
it's a free text search, it should give other results than softwares

for the json response, it's enough to include type in the response

@PerrineGilloteaux
Copy link
Member

Actually this was not the problem. This commit add a column with the entry type in the search results : c29b061
I am now investigating the empty lines

PerrineGilloteaux added a commit to PerrineGilloteaux/bise that referenced this issue May 11, 2023
@PerrineGilloteaux
Copy link
Member

The problem was that taxonomy term was also returned, (they are searched in any case in content). Fixed by aa5c053 (note that a reindexing is needed )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for deployment solved, but not on production yet website dev To be done on css, js, configuration etc.. and git tracked
Projects
Status: Done
Development

No branches or pull requests

3 participants