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

(vamsi) #1

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.

(Mark Walkom) #2

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

(vamsi) #3

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.

(Mark Walkom) #4

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

(vamsi) #5

Now it is clear. Thank you very much Mark.

(system) #6

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