Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

implement phrase searches or something similar #16

Open
dcloud opened this issue Jun 17, 2015 · 2 comments
Open

implement phrase searches or something similar #16

dcloud opened this issue Jun 17, 2015 · 2 comments

Comments

@dcloud
Copy link
Contributor

dcloud commented Jun 17, 2015

Searching on drug dogs gives you results about dogs and results about drugs. There should be a way to create phrases to pass to elasticsearch. Maybe turning "drug dogs" into a boolean AND query could do it. Need to check ES docs on boolean queries and the analyzer settings, cause I think there was supposed to be an issue with it.

Related to #15

@dcloud
Copy link
Contributor Author

dcloud commented Jun 18, 2015

Some candidates for supporting a query syntax:

At the moment I write this, I'm having trouble getting a "Query String Query" to work…

@dcloud
Copy link
Contributor Author

dcloud commented Jun 25, 2015

Code in 66f4e46. Add an option to PliableSearchForm to run auto_query rather than a raw_search. Allow PliableSearchBackend to check query_string for a string that ran through AutoQuery.

This seems to give the ability to perform match searches on synonyms and query string syntax for advanced searches (but without synonyms). Form provides the switch for turning on the query string syntax.

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

No branches or pull requests

1 participant