Binh,

I want to use conditional analysis for one set of documents not the single
field in those documents. So, it's like I'm analyzing my type A documents
with a set of tokens and rest of the documents with a different set of
tokens and filters. Is there any way by which I can do it ?

Thanks


On Thu, Jan 30, 2014 at 2:46 AM, Binh Ly <[email protected]> wrote:

> Analysis is done on a per-field basis. I do not believe you can
> conditionally change the analyzer for a single field depending on the
> nature of your data. However, you may be interested in the multi_field type
> which allows you define multiple analyzers for a single field.
>
>
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-multi-field-type.html
>
>
> On Wednesday, January 29, 2014 3:19:46 PM UTC-5, coder wrote:
>>
>> Also, are there any conditional token filtering can be done in
>> Elasticsearch. Let's say I want some of my documents to be tokenized with a
>> certain set of token filters whereas others to be indexed using some other
>> set of token filters.
>>
>> Thanks
>>
>>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/6bb01fbb-3394-4558-92e4-79aa8d7a84ea%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAAVTvp7rjxsOTJupZPq%3DesUtG0BcabQdRdyF7X7qrz%2BqnuAK1g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to