Attach analyzers at index time

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.

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.

clint

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.

Elasticsearch Platform — Find real-time answers at scale | Elastic

clint