Not analyzed field and lowercase tokenizer

Hi All,

I would like to use not_analyzed along with lower-case tokenizer. So that,
tokens of not analyzed field will store in lower-case.

is it possible to do above thing?

Regards,
Ankit

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Ankit,

Setting a field to not_analyzed instructs ES to not change anything. What
you need is analyzed with a custom text processing. You can combine the
keyword tokenizer
(http://www.elasticsearch.org/guide/reference/index-modules/analysis/keyword-tokenizer/
) with the lowercase token filter
( http://www.elasticsearch.org/guide/reference/index-modules/analysis/lowercase-tokenfilter/
)

You need to define a custom analyzer during index creation
( http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer/
) and then refer to it in your mapping (using the analyzer setting on the
field in question)

Cheers,
Boaz

On Friday, July 5, 2013 12:32:07 PM UTC+2, Ankit Jain wrote:

Hi All,

I would like to use not_analyzed along with lower-case tokenizer. So that,
tokens of not analyzed field will store in lower-case.

is it possible to do above thing?

Regards,
Ankit

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.