I am trying to implement a sort on the resulting set based on following
criteria
Last 24 hours of data should get the highest priority. Previous should
be getting the next and so on. ( I have a time feild which stores the time
of the feed)
And on a the last 24 hours of feeds , the feed with greatest value for
the field count should come first. The same with the rest.
So this is a combination of time field and number field.
Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.
I am trying to implement a sort on the resulting set based on following
criteria
Last 24 hours of data should get the highest priority. Previous
should be getting the next and so on. ( I have a time feild which stores
the time of the feed)
And on a the last 24 hours of feeds , the feed with greatest value
for the field count should come first. The same with the rest.
So this is a combination of time field and number field.
Add a boost to your documents in respect to the time stamp value.
Idea is to use timestamp for boost, e.g. 1.0 = day 1, 2.0 = day 2, 3.0 =
day 3 ... n = day n
Then you do not need to sort. Sort is evil.
Jörg
Am 06.05.13 06:23, schrieb Vineeth Mohan:
Hi ,
I am trying to implement a sort on the resulting set based on
following criteria
Last 24 hours of data should get the highest priority. Previous
should be getting the next and so on. ( I have a time feild which
stores the time of the feed)
And on a the last 24 hours of feeds , the feed with greatest value
for the field count should come first. The same with the rest.
So this is a combination of time field and number field.
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.