Attach analyzers at index time


(Lior Cohen barnea) #1

Hi all,

I am trying to attach an analyzer to a field at index time instead of
mapping an analyzer to a field statically,

For example - I want to index documents both in English and French and
I want to decide on the fly which analyzer to use when indexing the
document.

Can it be done with Jason message or by Lucene query ?

Thanks,

Lior.


(Clinton Gormley) #2

Hi Lior

I am trying to attach an analyzer to a field at index time instead of
mapping an analyzer to a field statically,

For example - I want to index documents both in English and French and
I want to decide on the fly which analyzer to use when indexing the
document.

http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html

clint


(Lior Cohen barnea) #3

Thanks Clint, got the idea.

On Feb 27, 1:45 pm, Clinton Gormley cl...@traveljury.com wrote:

Hi Lior

I am trying to attach an analyzer to a field at index time instead of
mapping an analyzer to a field statically,

For example - I want to index documents both in English and French and
I want to decide on the fly which analyzer to use when indexing the
document.

http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html

clint


(system) #4