I have a bunch of documents across several indexes that might have a field
(tags), that all have timestamps, and that all have the same id.
I want to search them so that if they have tags (so if tags exists), that
they have a higher score, and then sort all the documents by timestamp.
I noticed if I add a sort by timestamp descending to my query though, that
the order is based purely on timestamp and not on whether the tags exist.
I have a bunch of documents across several indexes that might have a field
(tags), that all have timestamps, and that all have the same id.
I want to search them so that if they have tags (so if tags exists), that
they have a higher score, and then sort all the documents by timestamp.
I noticed if I add a sort by timestamp descending to my query though, that
the order is based purely on timestamp and not on whether the tags exist.
I have a bunch of documents across several indexes that might have a
field (tags), that all have timestamps, and that all have the same id.
I want to search them so that if they have tags (so if tags exists), that
they have a higher score, and then sort all the documents by timestamp.
I noticed if I add a sort by timestamp descending to my query though,
that the order is based purely on timestamp and not on whether the tags
exist.
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.