0

How can I have elasticsearch query return results without _ internal fields such as _index, _type?

Reason: For several pages I use AJAX call to get results rather than render the entire webpage on server. But exposing _index & _type internal fields for every document is not only redundant (bandwidth), its also exposing the index and type names (security issue).

Please help!

1

1 Answer 1

0

This question was discussed a while ago in this thread of the elasticsearch google group.

In summary you can't hide those "internal" fields out of the box. I guess that you are not querying Elasticsearch directly (I hope your server is not open to the world) but an intermediate REST service, so, you can filter those fields there.

Sign up to request clarification or add additional context in comments.

Comments

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.