Mercurial > wikked
changeset 154:78b8febd362f
Change the default operator for ElasticSearch queries.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 25 Dec 2013 19:58:49 -0800 |
parents | b4a69ee1a608 |
children | 6cb5445e90b9 |
files | wikked/indexer/elastic.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/indexer/elastic.py Mon Dec 23 23:16:35 2013 -0800 +++ b/wikked/indexer/elastic.py Wed Dec 25 19:58:49 2013 -0800 @@ -160,6 +160,7 @@ 'query': { 'query_string': { 'fields': ['title_preview'], + 'default_operator': 'AND', 'query': query } }, @@ -184,6 +185,7 @@ 'query': { 'query_string': { 'fields': ['title', 'text'], + 'default_operator': 'AND', 'query': query } },