Mapping
"isValid" : {
"type" : "boolean"
},
"lName" : {
"type" : "text"
},
"mname" : {
"type" : "keyword"
}
Data
"isValid" : true
"lName" : "John scena",
"mname" : "prod"
Query (Match)
{
"query": {
"match" : {
"lName" : "John scena"
}
}
}
It gives me no result but,
{
"query": {
"match" : {
"mname" : "prod"
}
}
}
this gives me proper result
Query (Term)
{
"query":{
"term":{"lName":"John scena"}
}
}
This will also not give any response.
My Questions:
- Why is it happening? Please give a proper solution!
- What is different between "term", "match", "match phrase" query.
- What is different between "keyword","text","string"? It affect in query?
- What is date datatype format and in which format we can save data in type?
TIA.
term
query? We can see only match queries. Can you share term query also? – avr