Re: Modify the index setting after the index created ? what's the function of "search_quote_analyzer" ?

2015-01-05 Thread shallweqin
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" 

 to 
use in a Query-String query 

 or Field query 
 when 
the search phrase includes quotes (""). If not set, then it falls back to 
the"search_analyzer" 

 or 
the "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
>

-- 
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/c8c53f74-e5b0-4207-8c0e-77085961c54e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Modify the index setting after the index created ? what's the function of "search_quote_analyzer" ?

2015-01-05 Thread shallweqin
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" 

 
to use in a Query-String query 

 
or Field query 
 
when the search phrase includes quotes (""). If not set, then it falls back 
to the"search_analyzer" 

 
or the "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 elasticsearch+unsubscr...@googlegroups.com.
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.


Re: Modify the index setting after the index created ? what's the function of "search_quote_analyzer" ?

2014-10-27 Thread Thomas Christie
Bump, I'm having the same problem.

On Thursday, June 12, 2014 10:32:14 PM UTC-5, Ivan Ji wrote:
>
> 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d3ec9347-931e-43bf-a199-d667a43f42a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.