AFAIK, There are three types search I can perform on elasticsearch:
- query => which will do scoring and affect the hit
- filter => which will not do scoring and affect the hit
- post_filter => which will be applied on the result of query/filter and
will not affect the hit and facet aggregation
At the java client library side, I am assuming there should be same three
types of apis existing, yes I found three.
But unfortunately the setFilter method of SearchRequestBuilder had been
marked as deprecated and also had
been delegated to the setPostFilter method of itself.
My question is how can I perform a filter query by java client? I found a
way by that I can do filter query as following:
But it seems so strange that I have to declare an unnecessary match all
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6aefc449-3997-4128-b9ee-715d7a998b5c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.