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

expand_keywords as a query option #8

Closed
barryhunter opened this issue Oct 18, 2017 · 2 comments
Closed

expand_keywords as a query option #8

barryhunter opened this issue Oct 18, 2017 · 2 comments

Comments

@barryhunter
Copy link
Contributor

@barryhunter barryhunter commented Oct 18, 2017

Currently expand_keywords can be enabled on a index.

Would be more useful if was an OPTION per query, ie SELECT ... WHERE MATCH(...) OPTION expand_keywords=1

The index level option could remain, and just set default, the query option would just override it for that query. (maintain backwards compatibility)

@airolg
Copy link

@airolg airolg commented Oct 19, 2017

Added to backlog

@tomatolog
Copy link
Contributor

@tomatolog tomatolog commented Dec 6, 2017

just pushed this feature to master 73647a7 now you might add expand_keywords=1 or expand_keywords=0 as SphinxQL option to control that option per query

ie to enable expand for index declared without it

select * from exp_off where match ( 'run' ) option expand_keywords=1

or to disable expand for index

select * from exp_off where match ( 'run' ) option expand_keywords=0

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

Successfully merging a pull request may close this issue.

None yet
3 participants