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

refactor: multilingual advanced search #2702

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LeoniePeters
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Apr 4, 2025

JIRA ticket: EC-7150

// concatenate any advanced search rules with added entity value
if (this.qaes.length) {
params.query = params.query
.concat(' OR ').concat(this.qaes.join(' OR '));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the first OR here be an AND? i.e.

            params.query = params.query
              .concat(' AND ').concat(this.qaes.join(' OR '));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, what this does is add the entity URI value queries for which we have custom entity look up (e.g. 'creator', 'subject', defined in advancedSearch mixin). The same fields with the keyword value are added before. If we AND that first OR it will AND only the first entity value query and returns only results filtered to the advanced search field value that contain both the keyword and entity value, which in many cases seem to be much less.
Looking at this again though and trying multiple advanced search queries, I think the keyword and entity values should be added to just one field instead with an OR (for example proxy_dc_subject:(Agricultura+OR+"http://data.europeana.eu/concept/134"), but we'll have to see what effect that has on multilingual search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants