I'm shocked what really is happening.
The output of above query shows all my documents are missing that
particular field value.
{"took":222,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":4185107,"max_score":1.0,"hits":[{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ce64bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ce64bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"dindigul
to guntur driving
directions","url":"/driving-direction-by-road-route-map/dindigul-to-guntur-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ce74bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ce74bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"dindigul
to solapur driving
directions","url":"/driving-direction-by-road-route-map/dindigul-to-solapur-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ce84bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ce84bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"diu
to kanyakumari driving
directions","url":"/driving-direction-by-road-route-map/diu-to-kanyakumari-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ce94bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ce94bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"diu
to yellapur driving
directions","url":"/driving-direction-by-road-route-map/diu-to-yellapur-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49cea4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49cea4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"dombivli
to mahabaleshwar driving
directions","url":"/driving-direction-by-road-route-map/dombivli-to-mahabaleshwar-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ceb4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ceb4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"dungarpur
to bhadrachalam driving
directions","url":"/driving-direction-by-road-route-map/dungarpur-to-bhadrachalam-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49cec4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49cec4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"dungarpur
to palakkad driving
directions","url":"/driving-direction-by-road-route-map/dungarpur-to-palakkad-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49ced4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49ced4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"durg
to dehradun driving
directions","url":"/driving-direction-by-road-route-map/durg-to-dehradun-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49cee4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49cee4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"durg
to sakleshpur driving
directions","url":"/driving-direction-by-road-route-map/durg-to-sakleshpur-driving-directions"}},{"_index":"acqindex","_type":"autocomplete_questions","_id":"50efe5637d5cb0e49cef4bfb","_score":1.0,
"_source" :
{"_id":"50efe5637d5cb0e49cef4bfb","count":0.0,"ctype":"driving","en":true,"po":6.1923076923076925,"text":"durgapur
to hyderabad driving
directions","url":"/driving-direction-by-road-route-map/durgapur-to-hyderabad-driving-directions"}}]}}
This is really weird !!!
On Thu, Jan 30, 2014 at 6:48 PM, Mukul Gupta mukulnitkkr@gmail.com wrote:
I don't have any document for which po field is empty. I have checked my
mongo collections. Also, earlier it was taking value 1 for all the
documents that was the reason why _score was same for all the documents. Is
there anything wrong in my mapping field which is causing issue ? Please
help me.
On Thu, Jan 30, 2014 at 6:32 PM, Binh Ly binh@hibalo.com wrote:
That means you have some documents in your index that is missing the "po"
field. You should be able to run a query like this to find out:
{
"query": {
"filtered": {
"filter": {
"missing": {
"field": "po"
}
}
}
}
}
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/2dfda36e-1a24-41d8-9bf2-80cff402090a%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAVTvp6DK2nH1UL5QFuNX1SYm0QHD6zy3w%3DyN4JPh-_Z97o-hA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.