Thanks your your answer Binh

My mapping is:

        "person_name" : {
          "type" : "string",
          "analyzer" : "person_name_analyzer"
        }

>From your explanation looks like ES will analyze both the query string and
the stored value in the document. That is exactly what I want. Is there a
way to test this? I was having problems for a much complex query where I
thought that the tokens were matched against the full string value of the
person_name stored in the document.



On Wed, Jan 29, 2014 at 4:55 AM, Binh Ly <[email protected]> wrote:

> Karan,
>
> If you set person_name's analyzer to your custom one, analysis will
> generally be done at both query and index time. You also have the ability
> to set a different analyzer between index time and search time in which
> case they will behave differently when you search and when you index. See
> this for more details:
>
>
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_index_search_analyzers
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/uJPXFNRwlJk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/be6a73e0-ee20-4a43-83bc-0be074c09fb7%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Best,
Karan

Life saving Ninja & Software Engineer

Karan pronounced Ka (http://tiny.cc/0lu61w) + Run

-- 
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/CAGX3c4GSk79XhcUy0G%2BAA1eSFW_OjSTV4n%3DXRmWjZz8%2BQ8_8OA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to