Document 1:
{
"id": 1,
"title": "marble flooring"
}
Document 2:
{
"id": 2,
"title": "flooring marble"
}
Document 3:
{
"id": 3,
"title": "italian marble flooring"
}
Existing query which am using
Query:
{
"track_total_hits": true,
"_source": [
"title"
],
"query": {
"bool": {
"should": [
{
"match_phrase": {
"title.standard": {
"query": "marble floor",
"boost": 1
}
}
}
],
"minimum_should_match": "1"
}
}
}
but this above query returning all 3 documents, but I need only document 1 & document 2, guide me with the same