NEUBIAS / bise

BIII development repository
http://biii.eu
GNU General Public License v2.0
5 stars 14 forks source link

Empty items in response from search_api_fulltext #186

Open joakimlindblad opened 3 years ago

joakimlindblad commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 1 year ago

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

PerrineGilloteaux commented 1 year ago

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