Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stored field in elastic search

In the documentation, some types, such as numbers and dates, it specifies that store defaults to no. But that the field can still be retrieved from the json.

Its confusing. Does this mean _source?

Is there a way to not store a field at all, and just have it indexed and searchable?

like image 675
eran Avatar asked May 21 '13 06:05

eran


1 Answers

None of the field types are stored by default. Only the _source field is. That means you can always get back what you sent to the search engine. Even if you ask for specific fields, elasticsearch is going to parse the _source field for you and give you back those fields.

You can disable the _source if you want but then you could only retrieve the fields that you explicitly stored, according to your mapping.

like image 125
javanna Avatar answered Oct 27 '22 03:10

javanna