Configuring analyzer for entire schema

I know that you can configure an analyzer per field via _mapping, but if I
want to configure an analyzer or tokenizer for an entire schema
(unfortunately, I do not know the schema upfront), is there a way? Any
examples will be highly appreciated.

The real problem I am trying to solve is avoid tokenization for some of the
fileds that I need to facet on. I need the facets to count the exact phrase
and not tokenized pieces. However, there are tons of fields that fall into
the above and I do not know want to configure each such attribute
individually.

Thanks
R

--
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.

You can change the default analyzer at the index level [1]. "Schemas" tend
to be organized per type, but since each similarly named field is shared in
the index, each field should have the same analysis.

Of course, the default analyzer will be used on every field. You can change
the analyzer per field if you match on certain attributes such as name or
type [2].

[1] Elasticsearch Platform — Find real-time answers at scale | Elastic
(Scroll
down to default analyzers)
[2] Elasticsearch Platform — Find real-time answers at scale | Elastic
(Scroll
down to dynamic_templates)

Cheers,

Ivan

On Fri, Sep 6, 2013 at 10:56 AM, vrkiran valmikam@gmail.com wrote:

I know that you can configure an analyzer per field via _mapping, but if I
want to configure an analyzer or tokenizer for an entire schema
(unfortunately, I do not know the schema upfront), is there a way? Any
examples will be highly appreciated.

The real problem I am trying to solve is avoid tokenization for some of
the fileds that I need to facet on. I need the facets to count the exact
phrase and not tokenized pieces. However, there are tons of fields that
fall into the above and I do not know want to configure each such attribute
individually.

Thanks
R

--
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.

--
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.