Hi,
We have an issue with the match query of elastic search implementation.
Our index for categories field is as below.
"categories": [
"DJ’s",
"Entertainment Entertainment Entertainment
Entertai",
"Allergist",
"Transportation Services"
],
We are getting result when searched using the following input, with "query":
"allergist". Please see the query below.
{
"query": {
"bool": {
"must": [
{
"term": {
"status": 1
}
},
{
"term": {
"account_status": 1
}
}
],
"should": {
"multi_match": {
* "query": "allergist",*
"fields": [
"categories^5",
"service_titles^4",
"keywords^3",
"long_descriptions^2",
"general_desc^1",
"business_name^0"
],
"type": "phrase_prefix"
}
},
"minimum_should_match": 1
}
},
"sort": {
"recommend_rank": {
"order": "desc"
}
},
"from": 0,
"size": "10"
}
But not getting the result when using the input with "query": "holistic
allergist". Please see the query below.
{
"query": {
"bool": {
"must": [
{
"term": {
"status": 1
}
},
{
"term": {
"account_status": 1
}
}
],
"should": {
"multi_match": {
* "query": "holistic allergist",*
"fields": [
"categories^5",
"service_titles^4",
"keywords^3",
"long_descriptions^2",
"general_desc^1",
"business_name^0"
],
"type": "phrase_prefix"
}
},
"minimum_should_match": 1
}
},
"sort": {
"recommend_rank": {
"order": "desc"
}
},
"from": 0,
"size": "10"
}
I would appreciate your help on solving this issue.
Regards,
Anoop.
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c4e1ba5e-5374-49cd-b22b-c09c3946c091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.