_type is indexed but NOT stored. What does this mean?

I understood that in elastic, indexing means making it searchable.

I am confused at the point - indexed but not stored? After indexing and NOT storing, how can we search the one that is not stored? If we search such ones, where elastic will search or look for them if they are not stored at all?

Hope my question is clear to you all. We need to store a value somewhere so that it is searchable later. That is my understanding. In the case, it is indexed but not stored means, how is it searchable later as it is not stored anywhere?

Please clarify.

It means you can search on the value, but not return the original value.
See https://www.elastic.co/guide/en/elasticsearch/reference/5.5/mapping-store.html

Thank you Mark.

But I want to know, if it is NOT stored, then how it can be queried. To query it, it should be stored somewhere right?

Can you please clarify? Thank you.

Because it's stored in the inverted index structure that lucene creates, so it can search on it easily.

1 Like

Now it is clear. Thank you very much Mark.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.