I'm having troubles with sorting based on a combination of fields. For
instance, i have a document:
{ "name": "blah",
"age": 1,
"id": "132456"}
I need to get all documents sorted by the combination of name and id. I
don't want sort based first on name and then on id... I really need the
combination of both!
But I think that kind of sort will be quite heavy. If I had to do this, I
would index another field (not analyzed) that would be that combination,
and I'd sort on it instead. Should be more efficient.
Le mardi 26 mars 2013 12:51:37 UTC+1, Vania S. a écrit :
Hi all,
I'm having troubles with sorting based on a combination of fields. For
instance, i have a document:
{ "name": "blah",
"age": 1,
"id": "132456"}
I need to get all documents sorted by the combination of name and id. I
don't want sort based first on name and then on id... I really need the
combination of both!
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.