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

A new option synonyms.ignoreQueryOperators #28

Merged
merged 2 commits into from
Oct 12, 2013

Conversation

avlukanin
Copy link
Collaborator

I don't use query operators, so no synonyms are added to my query "e-commerce". I remove OR, AND and NOT from my queries before processing through synonym_edismax, so I don't need special treating of the query operators. I have fixed this by adding a new option.

@avlukanin
Copy link
Collaborator Author

Actually, the problem is in the COMPLEX_QUERY_OPERATORS_PATTERN. If I escape the minus (e-commerce) it works properly, but if I place the query in quotes ("e-commerce") the minus is treated as NOT, though it should not and the synonyms are not added. My option just ignores this pattern and doesn't break my queries.

nolanlawson added a commit that referenced this pull request Oct 12, 2013
A new option synonyms.ignoreQueryOperators
@nolanlawson nolanlawson merged commit 1cf5048 into healthonnet:master Oct 12, 2013
@nolanlawson
Copy link
Member

Seems like a reasonable feature, although really I should just be smarter about detecting when the - is intended to be a negation and when it's just part of a word.

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