Hi.
An index contains a text property named description.
Value of the description is "2:1.9.4"
When I try to search using below query
GET finding-index/_search
{
"query": {
"bool" : {
"must" : [
{
"query_string" : {
"query" : "*2\\:1.9.4*",
"fields" : [
"description"
],
"type" : "best_fields",
"default_operator" : "and",
"max_determinized_states" : 10000,
"enable_position_increments" : true,
"fuzziness" : "AUTO",
"fuzzy_prefix_length" : 0,
"fuzzy_max_expansions" : 50,
"phrase_slop" : 0,
"analyze_wildcard" : true,
"escape" : true,
"auto_generate_synonyms_phrase_query" : true,
"fuzzy_transpositions" : true,
"boost" : 1.0
}
}
],
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
}
the result is returned as expected. But if I use below query
GET finding-index/_search
{
"query": {
"bool" : {
"must" : [
{
"query_string" : {
"query" : "*2\\:1.9*",
"fields" : [
"description"
],
"type" : "best_fields",
"default_operator" : "and",
"max_determinized_states" : 10000,
"enable_position_increments" : true,
"fuzziness" : "AUTO",
"fuzzy_prefix_length" : 0,
"fuzzy_max_expansions" : 50,
"phrase_slop" : 0,
"analyze_wildcard" : true,
"escape" : true,
"auto_generate_synonyms_phrase_query" : true,
"fuzzy_transpositions" : true,
"boost" : 1.0
}
}
],
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
}
the result is not returned.
Difference b/w above two queries is just in the value part. First query has value as "*2\\:1.9.4*" and second query has value as "*2\\:1.9*".
Index mapping:
{
"finding-index": {
"mappings": {
"dynamic": "strict",
"properties": {
"_class": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"description": {
"type": "text"
}
}
}
}
}
Can someone please guide on how to perform partial search on a value which contains dots?