This gave me the right results, however I haven't index a large amount of
data. Would this query be right? In terms of performance, would it run slow
for a large indexed dataset?
On Thursday, August 16, 2012 4:15:58 PM UTC-4, David Pilato wrote:
Use filtered queries and filter your "how" query with a bool filter :
Must termFilter group_id : 143
Must termFilter user_id : 5
This gave me the right results, however I haven't index a large amount of data. Would this query be right? In terms of performance, would it run slow for a large indexed dataset?
On Thursday, August 16, 2012 4:15:58 PM UTC-4, David Pilato wrote:
Use filtered queries and filter your "how" query with a bool filter :
Must termFilter group_id : 143
Must termFilter user_id : 5
How to construct a query to search for user_id: 5 , group_id: 143 ,
message is "how" . I mean it should return results based on all the field
values given .
If possible suggest me the code snippet using java api.
Thanks,
Naveen Vishwanatham.
On Thursday, August 16, 2012 8:53:37 PM UTC-5, David Pilato wrote:
IMHO the query looks nice and it will be fast on large dataset.
You will have to perform some tests and if needed adjust the number of
shards and replica. But query looks ok like this.
This gave me the right results, however I haven't index a large amount of
data. Would this query be right? In terms of performance, would it run slow
for a large indexed dataset?
On Thursday, August 16, 2012 4:15:58 PM UTC-4, David Pilato wrote:
Use filtered queries and filter your "how" query with a bool filter :
Must termFilter group_id : 143
Must termFilter user_id : 5
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.