I've read on a StackOverflow post that you cannot filter on a script value.
So is there another way to calculate some value dynamically and filter on
that value?
If not, is there a nested SQL SELECT equivalent in ElasticSearch? Maybe I
could execute the first query to calculate the 'count' then execute another
query to filter by a value?
I've read on a StackOverflow post that you cannot filter on a script value.
So is there another way to calculate some value dynamically and filter on
that value?
If not, is there a nested SQL SELECT equivalent in Elasticsearch? Maybe I
could execute the first query to calculate the 'count' then execute another
query to filter by a value?
But what happens with that query is since I have 5 shards on our database,
I get 15 results back. So the counter variable is getting reset for each
shard.
Is there a way to keep that counter from resetting when searching each
shard?
On Wednesday, June 25, 2014 12:02:57 AM UTC-6, Cédric Hourcade wrote:
Hello,
You should be able to filter with a script using the script filter:
I've read on a StackOverflow post that you cannot filter on a script
value.
So is there another way to calculate some value dynamically and filter
on
that value?
If not, is there a nested SQL SELECT equivalent in Elasticsearch? Maybe
I
could execute the first query to calculate the 'count' then execute
another
query to filter by a value?
--
You received this message because you are subscribed to the Google
Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
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.