Sorry I did not reply sooner got pulled off this problem.
Just so everything is clearer I made a demo data set that shows that the sort is not what I expect.
The explain output has mentions of matches on the _all field. I expect that is because your query is not what you expect:
Here I think the value 5 is the only term targeting the ids fields and terms 17,21 etc are targeting the default _all field. Try put the fieldname outside of the brackets to change the default field context for all terms between the brackets i.e.
Thank you Mark, that was exactly my problem !! Now the sort works in an expected way !
I have been messing with this for at least a week, going trough different query methods and even field boosting. It was getting confusing and complex for nothing. I just always was using that bracket format....
Why is it always the little things that trip you up...
Thanks again.
Chris
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.