Open dcloud opened 9 years ago
Some candidates for supporting a query syntax:
At the moment I write this, I'm having trouble getting a "Query String Query" to work…
Code in 66f4e469e629d8e91ed5725589a26e441a138aae. 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.
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