I have sett the midding() to other values but it doesn't work because
my field is a String and ElasticSearch complains.
srb is the SearchRequestBuilder
We are replacing Lucene with ElasticSearch. In Lucene this worked for
us as we would construct the SortField Object and add that to the
query.
Sorting on a field that does not exists (in the mappings) will fail,
because elasticsearch needs to use the relevant sorting implementation
(numerics, string, ...).
I have sett the midding() to other values but it doesn't work because
my field is a String and Elasticsearch complains.
srb is the SearchRequestBuilder
We are replacing Lucene with Elasticsearch. In Lucene this worked for
us as we would construct the SortField Object and add that to the
query.
Is there a problem with having tons and tons of fields cause I would
have to generate thousands or 10s of thousands of fields and set many to
null ro fix my issue.
Is there a speedy way to check for fields that exist so I know what to
sort on?
Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422
On Wed, Nov 9, 2011 at 6:16 AM, Shay Banon kimchy@gmail.com wrote:
Sorting on a field that does not exists (in the mappings) will fail,
because elasticsearch needs to use the relevant sorting implementation
(numerics, string, ...).
I have sett the midding() to other values but it doesn't work because
my field is a String and Elasticsearch complains.
srb is the SearchRequestBuilder
We are replacing Lucene with Elasticsearch. In Lucene this worked for
us as we would construct the SortField Object and add that to the
query.
Not sure I understand..., are the fields supposed to be in this type or
not? You can use get mapping for a specific index/type, and see which
fields are currently mapped in the index.
Is there a problem with having tons and tons of fields cause I would
have to generate thousands or 10s of thousands of fields and set many to
null ro fix my issue.
Is there a speedy way to check for fields that exist so I know what to
sort on?
Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422
On Wed, Nov 9, 2011 at 6:16 AM, Shay Banon kimchy@gmail.com wrote:
Sorting on a field that does not exists (in the mappings) will fail,
because elasticsearch needs to use the relevant sorting implementation
(numerics, string, ...).
I have sett the midding() to other values but it doesn't work because
my field is a String and Elasticsearch complains.
srb is the SearchRequestBuilder
We are replacing Lucene with Elasticsearch. In Lucene this worked for
us as we would construct the SortField Object and add that to the
query.
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.