I can't find any documentations that talks about queries and their performance/comparison
I'm wondering which is better performance/faster multiple wildcard filter or a string_query?
"query": {
"bool" : {
"must" : [
{
"query_string" : {
"query" : "*val1* OR *val2*",
"default_field" : "field",
"fields" : [ ],
"type" : "best_fields",
"default_operator" : "or",
"max_determinized_states" : 10000,
"enable_position_increments" : true,
"fuzziness" : "AUTO",
"fuzzy_prefix_length" : 0,
"fuzzy_max_expansions" : 50,
"phrase_slop" : 0,
"escape" : false,
"auto_generate_synonyms_phrase_query" : true,
"fuzzy_transpositions" : true,
"boost" : 1.0
}
}
],
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
or
"query": {
"bool" : {
"filter" : [
{
"bool" : {
"should" : [
{
"wildcard" : {
"field" : {
"wildcard" : "*val1*",
"boost" : 1.0
}
}
},
{
"wildcard" : {
"field" : {
"wildcard" : "*val2*",
"boost" : 1.0
}
}
}
],
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"adjust_pure_negative" : true,
"boost" : 1.0
}
}