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

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/240aebf0-ae89-4b47-bcc7-b21ed54032de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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+unsubscribe@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.

Here is what i get from

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 elasticsearch+unsubscribe@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.

Here is what i get from

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

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