Here is what i get from 
http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#search_quote_analyzer

search_quote_analyzer sets the "analyzer" 
<http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#analyzer>
 
to use in a Query-String query 
<http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html>
 
or Field query 
<http://www.elasticsearch.org/guide/reference/query-dsl/field-query.html> 
when the search phrase includes quotes (""). If not set, then it falls back 
to the"search_analyzer" 
<http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#search_analyzer>
 
or the "analyzer" 
<http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#analyzer>
.

在 2014年6月13日星期五UTC+8上午11时32分14秒,Ivan Ji写道:
>
> Hi all,
>
> I want to modify one field's search analyzer from "standard" to "keyword" 
> after the index created. So I try to PUT mapping :
>
> $ curl -XPUT 'http://localhost:9200/qindex/main/_mapping' -d '
>> {
>>     "main" : {
>>         "properties" : {
>>             "name" : { "type": "string", "index": "analyzed", 
>> "index_analyzer": "filename_ngram", "search_analyzer": "keyword"}
>>         }
>>     }
>> }
>> '
>
>
> The operation seems succeed. Because I expect it might conflict, what 
> would the situations that conflict might occur? This is my first question.
>
> Anyway then I try to get the mapping out: (partial)
>
>       "name": {
>>                         "type": "string",
>>                         "index_analyzer": "filename_ngram",
>>                         "search_analyzer": "keyword",
>>                         "include_in_all": true,
>>                         "search_quote_analyzer": "standard"
>>                     }
>
>
>  So I am wondering whether my operation succeeded? and what is the 
> "search_quote_analyzer" function?  And it still remains "standard", does it 
> matter?
>
> Could anyone answer me these questions?
>
> Cheers,
>
> Ivan
>

在 2014年6月13日星期五UTC+8上午11时32分14秒,Ivan Ji写道:
>
> Hi all,
>
> I want to modify one field's search analyzer from "standard" to "keyword" 
> after the index created. So I try to PUT mapping :
>
> $ curl -XPUT 'http://localhost:9200/qindex/main/_mapping' -d '
>> {
>>     "main" : {
>>         "properties" : {
>>             "name" : { "type": "string", "index": "analyzed", 
>> "index_analyzer": "filename_ngram", "search_analyzer": "keyword"}
>>         }
>>     }
>> }
>> '
>
>
> The operation seems succeed. Because I expect it might conflict, what 
> would the situations that conflict might occur? This is my first question.
>
> Anyway then I try to get the mapping out: (partial)
>
>       "name": {
>>                         "type": "string",
>>                         "index_analyzer": "filename_ngram",
>>                         "search_analyzer": "keyword",
>>                         "include_in_all": true,
>>                         "search_quote_analyzer": "standard"
>>                     }
>
>
>  So I am wondering whether my operation succeeded? and what is the 
> "search_quote_analyzer" function?  And it still remains "standard", does it 
> matter?
>
> Could anyone answer me these questions?
>
> Cheers,
>
> Ivan
>

-- 
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/7bc327c0-6583-4a6b-877c-3fc933feb611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to