Hi,
How to search reserve/special characters on multimatch query ?
First of all , here the analyzer details for your reference.
index :
analysis :
analyzer :
default_index :
type : custom
tokenizer : whitespace
filter : [ word_delimiter, snowball, lowercase]
default_search :
type : custom
tokenizer : whitespace
filter : [ word_delimiter, snowball, lowercase]
filter :
word_delimiter :
type : word_delimiter
preserve_original : true
split_on_numerics : true
stem_english_possessive : false
The following query returns no resluts , when using the multimatch query.
"query" : {
"bool" : {
"must" : {
"multi_match" : {
"query" : "\\(\\)",
"fields" : [ "field1", "field2", "field3", "field4" ],
"operator" : "AND"
}
}
}
Where when i search through specific field it works perfectly.
"query" : {
"bool" : {
"must" : {
"query_string" : {
"query" : "message:\\(\\)",
"default_operator" : "and"
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/cc067a67-3735-4b80-85f8-b14ddad9fdc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.