Make wildcard search case-insensitive (#559)
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html#wildcard-query-field-params
This commit is contained in:
parent
cf23c13a17
commit
9a20bad5e1
|
@ -1278,6 +1278,7 @@ searchFields query mainField fields =
|
||||||
[ ( mainField
|
[ ( mainField
|
||||||
, Json.Encode.object
|
, Json.Encode.object
|
||||||
[ ( "value", Json.Encode.string ("*" ++ queryWord ++ "*") )
|
[ ( "value", Json.Encode.string ("*" ++ queryWord ++ "*") )
|
||||||
|
, ( "case_insensitive", Json.Encode.bool True )
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue