Field mapping


(android) #1

hey guys,

I'd like to index a document. And I want some fields to be indexable, and some fields to be storable, so that when I search for a field it will search through the indexable ones, and return the storable fields in the result set. Is it possible to do this in ES?


(David Pilato) #2

Yes see index and store option in mapping.

http://www.elasticsearch.org/guide/reference/mapping/core-types.html

David :wink:
@dadoonet

Le 16 mars 2012 à 00:54, android orcunsimsek@gmail.com a écrit :

hey guys,

I'd like to index a document. And I want some fields to be indexable, and
some fields to be storable, so that when I search for a field it will search
through the indexable ones, and return the storable fields in the result
set. Is it possible to do this in ES?

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/field-mapping-tp3830453p3830453.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(Shay Banon) #3

Store field mapping is one option, though note that by default the whole
json document provided is stored under _source, and you can ask for
specific "paths" out of it when providing fields in the search request.

On Fri, Mar 16, 2012 at 7:28 PM, David Pilato david@pilato.fr wrote:

Yes see index and store option in mapping.

http://www.elasticsearch.org/guide/reference/mapping/core-types.html

David :wink:
@dadoonet

Le 16 mars 2012 à 00:54, android orcunsimsek@gmail.com a écrit :

hey guys,

I'd like to index a document. And I want some fields to be indexable, and
some fields to be storable, so that when I search for a field it will
search
through the indexable ones, and return the storable fields in the result
set. Is it possible to do this in ES?

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/field-mapping-tp3830453p3830453.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #4