Hi, Multi-fields are usually the way to go in such cases, see http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/aggregations-and-analysis.html
On Mon, Aug 25, 2014 at 9:49 PM, <kti...@hotmail.com> wrote: > I am aggregating documents by customer name to find how many documents we > have per customer. > The aggregates bucketize words in names. For example, if I have customer, > Tom Cruise, I would get 2 buckets, "Tom" and "Cruise" > > How would I treat the analyzed field as not_analyzed in aggregate query? > I still want the field to remain analyzed so that I can do fulltext search. > > 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 elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/ff43bdfa-db39-4894-8cf8-a1f6b0df96ce%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/ff43bdfa-db39-4894-8cf8-a1f6b0df96ce%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adrien Grand -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5R69zwcKpYGr60WD_yQrwGcnfaRnfJusHUvmLimg2XnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.