3

I'm using Jest Client along with Query builder. Not able to find how to perform source filtering.

How to set _source field to false using query builder?

1 Answer 1

5

You need to use fetchSource() like this:

SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder()
    .query(query)
    .fetchSource(false);
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. Exactly what I was looking for!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.