Filtering by the Java Transport Client

(Benno Si) #1


I'm new to ES and I'm using the Java Transport client to perfom searches. I read about queries and filters and that for performance reasons there should be used filters before queries, because filters can be cached. Now I'm wondering where to set the filter in the Transport Client, I see the methods setQuery() and setPostFilter(). Which method should I use, if I want to perform a search on structured data, without the need of scoring, I also do not need the fulltext index. If possible I want to make usage of caching as much as possible.

Many thanks for your help.

regards, Benno

(system) #2