# Change "search\_analyzer" settings without reindexing

**URL:** https://discuss.elastic.co/t/change-search-analyzer-settings-without-reindexing/15315
**Category:** Elasticsearch
**Created:** [January 20, 2014, 5:22am UTC](https://discuss.elastic.co/t/change-search-analyzer-settings-without-reindexing/15315 "2014-01-20T05:22:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paul1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul1/32/46819_2.png) [@paul1](https://discuss.elastic.co/u/paul1)
#### Post date: [January 20, 2014, 5:22am UTC](https://discuss.elastic.co/t/change-search-analyzer-settings-without-reindexing/15315/1 "2014-01-20T05:22:05Z")

</div>

hi ,

Is there a way to change search analyzer settings without re-indexing the  
entire data. I am experimenting with various configuration and every time i  
change the setting i am re-indexing.

## setting:

```
    "autocomplete_search":{
           "type":"custom",
           "tokenizer":"my_pipe_analyzer",
           "filter":[
              "lowercase",
              "syns_filter",

```

## "stop" ] }, "autocomplete\_index":{ "type":"custom", "tokenizer":"standard", "filter":["standard", "lowercase", "syns\_filter", "stop", "my\_edgeNgram"] } mapping:

```
        "name":{
           "type":"string",
   "index_analyzer" : "autocomplete_index", 
   "search_analyzer" : "autocomplete_search"
        },

```

-paul

--  
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/97baca09-4d0f-4f70-b654-68510885e9e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/97baca09-4d0f-4f70-b654-68510885e9e4%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 20, 2014, 7:12am UTC](https://discuss.elastic.co/t/change-search-analyzer-settings-without-reindexing/15315/2 "2014-01-20T07:12:15Z")

</div>

I don't think it will work but you can set the analyzer you want at query time: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#\_boolean:](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#_boolean:)  
The analyzer can be set to control which analyzer will perform the analysis process on the text. It default to the field explicit mapping definition, or the default search analyzer.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 janv. 2014 à 06:22, paul [avinashpaul85@gmail.com](mailto:avinashpaul85@gmail.com) a écrit :

hi ,

Is there a way to change search analyzer settings without re-indexing the entire data. I am experimenting with various configuration and every time i change the setting i am re-indexing.

## setting:

```
    "autocomplete_search":{
           "type":"custom",
           "tokenizer":"my_pipe_analyzer",
           "filter":[
              "lowercase",
              "syns_filter",
	  "stop"
           ]
        },
        "autocomplete_index":{
           "type":"custom",
           "tokenizer":"standard",
           "filter":[
              "standard",
              "lowercase",
              "syns_filter",
	  "stop",
              "my_edgeNgram"
           ]
        }

```

## mapping:

```
        "name":{
           "type":"string",
       "index_analyzer" : "autocomplete_index", 
       "search_analyzer" : "autocomplete_search"
        },

```

## -paul

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/97baca09-4d0f-4f70-b654-68510885e9e4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/97baca09-4d0f-4f70-b654-68510885e9e4%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/6BDDE4F6-363F-467F-903B-0938AA1B16F4%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/6BDDE4F6-363F-467F-903B-0938AA1B16F4%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:55am UTC](https://discuss.elastic.co/t/change-search-analyzer-settings-without-reindexing/15315/3 "2017-07-06T01:55:57Z")

</div>


