Hi All,
I am having an Issue of not getting any results when String types are
used in the Filter criteria.
Here is the mapping i am using.
"MyOrderLog" :{
"type" : "object",
"properties" : {
"log_entry":{
"properties" : {
"_id" : {"type" : "integer", "store":"yes"},
"text" : {"type" : "string", "store":"yes", "index"
: "not_analyzed","term_vector" : "with_positions_offsets"},
"subject" : {"type" : "string", "store":"yes",
"index" : "not_analyzed","term_vector" : "with_positions_offsets"},
"creation_date" : {"type" : "date", "store":"yes", "index" :
"not_analyzed"},
"modification_date" : {"type" : "date", "store":"yes", "index" :
"not_analyzed"},
"created_by" : {"type" : "integer", "store":"yes", "index" :
"not_analyzed"},
"modified_by" : {"type" : "integer", "store":"yes", "index" :
"not_analyzed"},
"log_type" : {"type" : "string", "store":"yes", "index" : "not_analyzed"}
}
}
}
}
And the Query i am using is
{
"from": 1,
"size": 10,
"query": {
"filtered": {
"query": {
"query_string": {
"query" : ""
}
},
"filter": {
"and": [
{
"term": {
"log_entry.text": "a"
}
}
]
}
}
}
}
I tried on "log_entry.log_type" field as well and it's the same empty
result set that's returning.
How ever when i try on integer types of Date types everything works as
expected.
Not sure what i am missing.
Thanks
--
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.
For more options, visit https://groups.google.com/groups/opt_out.