agroportal / project-management

Repository used to consolidate documentation about the AgroPortal project and track content related issues.
http://agroportal.lirmm.fr
7 stars 0 forks source link

Unexpected list of results with Search box on home page #594

Open saubin78 opened 3 months ago

saubin78 commented 3 months ago

Describe the bug If you type "phenological scales of olive tree" then press enter in the search box which is on the home page, the results do not include the ontologies that match this string.

To Reproduce Steps to reproduce the behavior:

  1. Go to Home
  2. Type "phenological scales of olive tree" then Click on 'Enter'
  3. look at results page
  4. See that only classes and concepts are listed. Ontologies are missing.

Expected behavior I'd expect to get all the ontologies that have "phenological scales of olive tree" in their name, i.e. BBCH phenological scales of olive tree which appears in the autocompletion results on home page. I'd expect the same behavior from autocompletion and "enter" action

Screenshots On home page - autocompletion --> ontologies image On results page - after pressing "enter" --> no ontologies image

jonquet commented 3 months ago

This is not a bug. If you end up on the Search page it means you have (in the home page "search box" ) clicked "Search ontology content" in the proposed menu. So you endup in the ontology search page which search in ontologies and does not search for ontologie (it never did).

To get alll the ontologies that have "phenological scales of olive tree" in their name (with such a long name you already see the result in the menu => PPD-OLT) you would have to select "Browse all ontologies" in the proposed menu.

jonquet commented 3 months ago

I am concerned experimented users don't necessrily get it ;) Is this search box to advance?

saubin78 commented 3 months ago

I understand that this is not a bug nor a too advanced search box. The problem is that the behavior is implicit to the user in the sense that I have not clicked "Search ontology content" in the proposed menu. 1) The search box says : "Search an ontology or a term". 2) I've copy-pasted the name of the ontology I was looking for and pressed "Enter" 3) I expected to have either ontologies or terms as it is mentioned in the search box : "Search an ontology or a term". 4) I got only terms as results

jonquet commented 3 months ago

Indeed, you you press enter after filling the menu the default behaviour is to bring you to the /search page which is indeed the search service for the ontology content. We do not have a page or service to search in AgroPortal across objects. Even the /search page does not even returns other things than classes/concepts within an ontology (and not instance, properties, schemes and collections). Going toward such a page or search service may be desired and is discussed sometime. But its not trivial and its a big change.

jonquet commented 3 months ago
saubin78 commented 1 month ago

Hi. Again, I ended in an unexpected (from my point of you) and inconsistent behavior of the home page search box. When I enter "ATOL" (looking for the ATOL ontology by its acronym) on the first time I can see the ATOL ontology in the result for a quarter of seconds then it disappears. image Then I try a second time and I can see it image

jonquet commented 1 month ago

Oui. J'ai observé ce comportement aussi. Un résultat pertinent apparait tout de suite puis est remplacé par d'autres. Et comme il y en a que 3, il ne reste pas.