# Modify the index setting after the index created ? what's the function of "search\_quote\_analyzer"?

**URL:** <https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085>\
**Category:** Elasticsearch\
**Created:** [June 13, 2014, 3:32am UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085 "2014-06-13T03:32:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Ji](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Ivan\_Ji](https://discuss.elastic.co/u/Ivan_Ji)\
**Post date:** [June 13, 2014, 3:32am UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085/1 "2014-06-13T03:32:13Z")

</div>

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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/240aebf0-ae89-4b47-bcc7-b21ed54032de%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Thomas\_Christie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomas_christie/32/1155_2.png) [@Thomas\_Christie](https://discuss.elastic.co/u/Thomas_Christie)\
**Post date:** [October 27, 2014, 5:24pm UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085/2 "2014-10-27T17:24:02Z")

</div>

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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/d3ec9347-931e-43bf-a199-d667a43f42a8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shallweqin](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shallweqin](https://discuss.elastic.co/u/shallweqin)\
**Post date:** [January 5, 2015, 9:54am UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085/3 "2015-01-05T09:54:09Z")

</div>

Here is what i get from

> **[Elastic::Manual::Attributes - Fine-tuning how your attributes are indexed -...](https://metacpan.org/release/DRTECH/Elastic-Model-0.27/view/lib/Elastic/Manual/Attributes.pod)**
>
> Fine-tuning how your attributes are indexed

search\_quote\_analyzer sets the "analyzer"  
[http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#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](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](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](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](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](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/7bc327c0-6583-4a6b-877c-3fc933feb611%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shallweqin](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shallweqin](https://discuss.elastic.co/u/shallweqin)\
**Post date:** [January 5, 2015, 9:56am UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085/4 "2015-01-05T09:56:16Z")

</div>

Here is what i get from

> **[Elastic::Manual::Attributes - Fine-tuning how your attributes are indexed -...](https://metacpan.org/release/DRTECH/Elastic-Model-0.27/view/lib/Elastic/Manual/Attributes.pod)**
>
> Fine-tuning how your attributes are indexed

search\_quote\_analyzer sets the "analyzer"  
[http://search.cpan.org/~drtech/Elastic-Model-0.27/lib/Elastic/Manual/Attributes.pod#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](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](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](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](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/c8c53f74-e5b0-4207-8c0e-77085961c54e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:40am UTC](https://discuss.elastic.co/t/modify-the-index-setting-after-the-index-created-whats-the-function-of-search-quote-analyzer/18085/5 "2017-07-06T00:40:55Z")

</div>


