I'm trying to resolve a major challenge with ElasticSearch : I have
documents published since few years, and i'm adding new documents every
day. But some of documents indexed can't be returned to the client before a
specified date. But this constraint is only for the docs published during
the last 15 days max. I dont want to run a query on the entire index to
check if documents match this constraint but i would like to be able to
filter results by shards : actually i'm routing my docs during indexing
based on creation date. Since it's just a boolean filter, i understand that
it's not altering the score. Is there a way to filter only on a specific
shard or specific index, so i can run it only on documents from the last 15
days ?
On Thursday, November 1, 2012 10:29:35 AM UTC-4, Loïc Bertron wrote:
Hello,
I'm trying to resolve a major challenge with Elasticsearch : I have
documents published since few years, and i'm adding new documents every
day. But some of documents indexed can't be returned to the client before a
specified date. But this constraint is only for the docs published during
the last 15 days max. I dont want to run a query on the entire index to
check if documents match this constraint but i would like to be able to
filter results by shards : actually i'm routing my docs during indexing
based on creation date. Since it's just a boolean filter, i understand that
it's not altering the score. Is there a way to filter only on a specific
shard or specific index, so i can run it only on documents from the last 15
days ?
On Thursday, November 1, 2012 10:29:35 AM UTC-4, Loïc Bertron wrote:
Hello,
I'm trying to resolve a major challenge with Elasticsearch : I have
documents published since few years, and i'm adding new documents every
day. But some of documents indexed can't be returned to the client before a
specified date. But this constraint is only for the docs published during
the last 15 days max. I dont want to run a query on the entire index to
check if documents match this constraint but i would like to be able to
filter results by shards : actually i'm routing my docs during indexing
based on creation date. Since it's just a boolean filter, i understand that
it's not altering the score. Is there a way to filter only on a specific
shard or specific index, so i can run it only on documents from the last 15
days ?
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.