I have multiple documents as
"_source": {
"vin": "SALSK25448A121736",
"make": "Land Rover",
"model": "Range Rover Sport",
"trim": "HSE",
"year": 2008,
"body_style": "SUV",
"city": "Hollywood",
"drive_type": "4WD",
"engine": "8 Cyl",.....
"_source": {
"vin": "SALSK25448A121736",
"make": "Land Rover",
"model": "Range Rover",
"trim": "HSE",
"year": 2009,
"body_style": "SUV",
"city": "Hollywood",
"drive_type": "2WD",
"engine": "6 Cyl",....
"_source": {
"vin": "SALSK25448A121736",
"make": "Land Rover",
"model": "Range Rover",
"trim": "HSE",
"year": 2009,
"body_style": "SUV",
"city": "Hollywood",
"drive_type": "2WD",
"engine": "4 Cyl",....
And I want to fetch records matching say field "engine": "6 Cyl" & "8 Cyl" How can I do that?
I used {
"match" : {
"engine" : {
"query" : "4 Cyl ,8 Cyl",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"boost" : 1.0
}
} it returns all 3 documents v/s 2