iodepo / oih-ui

source code for the Ocean InfoHub (OIH) website
https://oceaninfohub.org/
MIT License
5 stars 4 forks source link

Keywords in facet option are not complete #127

Open emarzini opened 6 months ago

emarzini commented 6 months ago

The facet option returned with a empty search (without specify any kind of filter) are not complete. We found this bug analyzing "Keywords" as an example.

If the user are searching for Document without filter we can see that some results have keyword that are not in the available option in the filter

Screenshot 2024-03-19 at 09 12 50

Screenshot 2024-03-19 at 09 14 08

If the user refines the search clicking on some filters, SOLR returns results and the available option for the facets. Now the user can see the keyword there weren't present before

Screenshot 2024-03-19 at 09 14 42

The same behavior is present in the current production environment

Screenshot 2024-03-19 at 09 15 50

Screenshot 2024-03-19 at 09 16 02

pbuttigieg commented 6 months ago

To verify: Ensure that not only text literals are Retrieved, but also keywords in the DefinedTerm stanzas

@fils and @jmckenna to verify graph and SOLR congruence on our side

pbuttigieg commented 6 months ago

An example call made to Solr for the Documents Topic:

params={q=:&facet.field=type&facet.field=txt_keywords&facet.field=txt_contributor&facet.field=txt_provider&start=0&q.op=AND&sort=indexed_ts+desc&facet.mincount=1&fq=%2Btype:(CreativeWork)&rows=10&facet=true}
pbuttigieg commented 2 weeks ago

This doesn't seem to be resolved. - the SOP keyword is not available in the Keyword filter, even though we can see it in the search result box

pbuttigieg commented 2 weeks ago

If the user refines the search clicking on some filters, SOLR returns results and the available option for the facets. Now the user can see the keyword there weren't present before

Note that this is not the Front-end behaviour anymore, all keywords are retained when a Provider or other facet is used to subset results.