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

Biii Full-text search does not look into EDAM tags #137

Closed
joakimlindblad opened this issue Mar 1, 2020 · 12 comments
Closed

Biii Full-text search does not look into EDAM tags #137

joakimlindblad opened this issue Mar 1, 2020 · 12 comments
Assignees
Labels
bug Something isn't working search-related website dev To be done on css, js, configuration etc.. and git tracked

Comments

@joakimlindblad
Copy link

Problem: Free text search does not report hits on used EDAM tags.
Issue: Free text search should reports hits on used EDAM tags, they are relevant!

Example: In free text search, if searching for an EDAM topic (e.g. "Multimodal Imaging") we get fewer hits (almost no) than if we, in advanced search, show what is listed under the Topic "Multimodal Imaging".

Search: https://test.biii.eu/search?search_api_fulltext=multimodal finds 2 hits!
Search: http://test.biii.eu/all-content?type=All&field_has_topic_target_id_1%5B%5D=4774&field_type_target_id=All finds 10 hits.

Example 2: See the "smoothing" first subtopic of Issue #108

Note: This Issue is a specification of the first subtopic of issue #108 (thus a narrowing of the composite #108 issue), with an intention to elevate its priority.

@PerrineGilloteaux PerrineGilloteaux self-assigned this Mar 1, 2020
@PerrineGilloteaux
Copy link
Member

PerrineGilloteaux commented Mar 1, 2020

http://test.biii.eu/search?search_api_fulltext=%22rigid+registration%22
NOT working (I changed the CRON indexing to index everything. See for example Cell profiler Align not appearing in the result while "rigid registration term" only appear infunction as edam bioimaging operation

@PerrineGilloteaux
Copy link
Member

Ok: now testing after having edited the PROCESSORS of the serach INDEX -> Added entity linked and Added hierachical index -> that should solve both searching in terms AND inheritance of parent terms

@PerrineGilloteaux
Copy link
Member

PerrineGilloteaux commented Mar 1, 2020

new procedure Under testing -In the 'Fields' tab for your active index (ex: Administration->Configuration->Search and metadata->Search API)
...select 'Add Fields'
-You'll get the list of fields to add, broken out by section. Under Content (not Taxonomy Term) find the field that is the entity reference field on your content type. For example, if you've added an entity reference field pointing to the default Free Tags vocabulary look for "(+) Free Tags (field_tags)
-Click the (+) to expand the items under that field.
-You should get another bullet point for "Taxonomy term(field_tags:entity)". Click the (+) on that one as well.
-You'll get more bullet points with "Add" buttons. Find the one that says "Name (field_tags:entity:name)" and click the "Add" button and click "Done"
-Back on the "Manage Fields" page, you should see a line item for the field you just added in the "Content" section. It should say something like "Free Tag >> Taxonomy term >> Name" in the Label Column.
-For that line, make sure the "Type" is set to Fulltext, not string.
-after making this change, you'll need to re-index your content. You may also need to clear your caches and run cron to get the results to start showing up.

@PerrineGilloteaux
Copy link
Member

Sounds like solved, but only when logged (config export to be done)
(had followed the procedure above, have Added synonyms as well in the list

@PerrineGilloteaux
Copy link
Member

Fixed: was actually only a cache matter I Believe , today the same Search return the same results for both Anonymous and not Anonymous users

@PerrineGilloteaux
Copy link
Member

it should be solved again, @delestro @joakimlindblad could you check?

@PerrineGilloteaux
Copy link
Member

"multimodal AND interactive" is a subset of multimodal where entries also mention interactive

@joakimlindblad
Copy link
Author

Search in EDAM keywords seems to work again :-)
Both when logged in and when not.

The last comment I do not fully understand though. The free text search seems to OR all words together, if I search for "multimodal AND interactive" the top hit is a text with many occurrences of the word "and".

The mentioned search in synonyms ("Added synonyms as well") seems to not work though. An example is search for "visualisation" gives Catmaid - which has "visualisation" and "image visualisation" set, whereas search for the narrow synonym "plotting" does not, nor does "rendering" (exact synonym of image visualisation).

@PerrineGilloteaux
Copy link
Member

PerrineGilloteaux commented Mar 4, 2020 via email

PerrineGilloteaux added a commit to PerrineGilloteaux/bise that referenced this issue Jun 18, 2020
use function, should use synomyns (to be double checked, may be add field synomym :entity ratehr than synonym ) ;same for topics. Relate to NEUBIAS#137
@PerrineGilloteaux
Copy link
Member

Please note that Tracking rebuild AND reindexing (and drush cr) is needed for correct new indexing in search api

PerrineGilloteaux added a commit to PerrineGilloteaux/bise that referenced this issue Jun 19, 2020
important was missing rendered item. Need to REBUILD TRACL INDEX, and run reindexation, and drush cr before seing effects
NEUBIAS#152
NEUBIAS#141
NEUBIAS#137
@miura
Copy link
Member

miura commented Jul 4, 2020

@joakimlindblad could you check if your points are now satisfied? I reindexed and cache-recreated biii.eu.

@PerrineGilloteaux
Copy link
Member

First part of the issue is solved. Second part (related to Synonym search) is closed as duplicated of #202

@PerrineGilloteaux PerrineGilloteaux added website dev To be done on css, js, configuration etc.. and git tracked bug Something isn't working labels May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working search-related website dev To be done on css, js, configuration etc.. and git tracked
Projects
None yet
Development

No branches or pull requests

3 participants