I have Indexed title_o as non indexed field. Query to get exact search is not returning results. I need find documents when the title_o matches this is test1. Please help.
Indexed following documents:
curl -XPUT 'http://localhost:9200/test/test10/1' -d '
{
"doi":"1234",
"title":"this is test1",
"title_o":"this is test1"
}'
curl -XPUT 'http://localhost:9200/test/test10/3' -d '
{
"doi":"1234",
"title":"this is test3",
"title_o":"this is test3"
}'
Search:
curl -XGET 'http://localhost:9200/test/test10/_search?pretty=true' -d '
{
"query" : {
"filtered" : {
"filter" : {
"term" : {
"title_o" : "this is test1"
}
}
}
}
}'