Commit 54d8d08b authored by Gergely Ujvari's avatar Gergely Ujvari

Unicode normalization for ES

parent 50238f8b
...@@ -169,7 +169,7 @@ class SearchFilter ...@@ -169,7 +169,7 @@ class SearchFilter
# #
# options: backend specific options # options: backend specific options
# options.es: elasticsearch specific options # options.es: elasticsearch specific options
# options.es.query_type : can be: simple, query_string, match, multi_match # options.es.query_type : can be: simple (term), query_string, match, multi_match
# defaults to: simple, determines which es query type to use # defaults to: simple, determines which es query type to use
# options.es.cutoff_frequency: if set, the query will be given a cutoff_frequency for this facet # options.es.cutoff_frequency: if set, the query will be given a cutoff_frequency for this facet
# options.es.and_or: match and multi_match queries can use this, defaults to and # options.es.and_or: match and multi_match queries can use this, defaults to and
...@@ -187,14 +187,23 @@ class QueryParser ...@@ -187,14 +187,23 @@ class QueryParser
path: '/text' path: '/text'
case_sensitive: false case_sensitive: false
and_or: 'and' and_or: 'and'
options:
es:
query_type: 'match'
tag: tag:
path: '/tags' path: '/tags'
case_sensitive: false case_sensitive: false
and_or: 'and' and_or: 'and'
options:
es:
query_type: 'match'
quote: quote:
path: '/quote' path: '/quote'
case_sensitive: false case_sensitive: false
and_or: 'and' and_or: 'and'
options:
es:
query_type: 'match'
uri: uri:
formatter: (uri) -> formatter: (uri) ->
uri.toLowerCase() uri.toLowerCase()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment