# Autocomplete mapping error

**URL:** <https://discuss.elastic.co/t/autocomplete-mapping-error/14938>\
**Category:** Elasticsearch\
**Created:** [December 18, 2013, 7:09pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938 "2013-12-18T19:09:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Corb](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Joshua\_Corb](https://discuss.elastic.co/u/Joshua_Corb)\
**Post date:** [December 18, 2013, 7:09pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/1 "2013-12-18T19:09:41Z")

</div>

We are running into an issue where we are getting mapping issues. We are  
have tried on both Ubuntu and OSX. We are using java 1.7. Attached is our  
node configuration, and below is the error we are getting.

11:12:47,856 WARN [org.elasticsearch.indices.cluster]  
(elasticsearch[Nemesis][clusterService#updateTask][T#1]) [Nemesis] [need]  
failed to add mapping [need], source  
[{"need":{"properties":{"defaultTextValue":{"type":"string"},"description":{"type":"string"},"endDate":{"type":"string"},"id":{"type":"string"},"imageURL":{"type":"string"},"location":{"type":"geo\_point"},"mainCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"postDate":{"type":"string"},"subCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"tags":{"type":"string","store":true,"index\_analyzer":"keyword"},"title":{"type":"multi\_field","fields":{"title":{"type":"string"},"title.autocomplete":{"type":"string","store":true,"index\_analyzer":"autocomplete","search\_analyzer":"autocomplete\_search","include\_in\_all":false},"title.untouched":{"type":"string","index":"not\_analyzed","omit\_norms":true,"index\_options":"docs","include\_in\_all":false}}},"user":{"type":"string","store":true,"index\_analyzer":"keyword"},"version":{"type":"long"}}}}]:  
org.elasticsearch.index.mapper.MapperParsingException: Analyzer  
[autocomplete] not found for field [title.autocomplete]  
at  
org.elasticsearch.index.mapper.core.TypeParsers.parseField(TypeParsers.java:107)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.core.StringFieldMapper$TypeParser.parse(StringFieldMapper.java:150)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.multifield.MultiFieldMapper$TypeParser.parse(MultiFieldMapper.java:130)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:263)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:219)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:176)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:314)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:193)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.processMapping(IndicesClusterStateService.java:417)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.applyMappings(IndicesClusterStateService.java:381)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:179)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:414)  
[elasticsearch-0.90.7.jar:]  
at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
[elasticsearch-0.90.7.jar:]  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
[rt.jar:1.7.0\_45]  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
[rt.jar:1.7.0\_45]  
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0\_45]

--  
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/3c8b1aaa-96e7-43a0-a148-38d92c79bbef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c8b1aaa-96e7-43a0-a148-38d92c79bbef%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:** ![zkidkid](https://avatars.discourse-cdn.com/v4/letter/z/fbc32d/32.png) [@zkidkid](https://discuss.elastic.co/u/zkidkid)\
**Post date:** [December 19, 2013, 4:14am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/2 "2013-12-19T04:14:28Z")

</div>

Maybe your custom autocomplete isn't work.  
I see that:  
index.analysis.analyzer.autocomplete:  
type: custom  
tokenizer: whitespace  
filter: lowercase#, auto\_edge\_ngram  
Maybe you should remove # and restart your es server.  
After that please check your log whether ES start right.

On Wednesday, December 18, 2013 11:09:41 AM UTC-8, Joshua Corb wrote:

> We are running into an issue where we are getting mapping issues. We are  
> have tried on both Ubuntu and OSX. We are using java 1.7. Attached is our  
> node configuration, and below is the error we are getting.
> 
> 11:12:47,856 WARN [org.elasticsearch.indices.cluster]  
> (elasticsearch[Nemesis][clusterService#updateTask][T#1]) [Nemesis] [need]  
> failed to add mapping [need], source  
> [{"need":{"properties":{"defaultTextValue":{"type":"string"},"description":{"type":"string"},"endDate":{"type":"string"},"id":{"type":"string"},"imageURL":{"type":"string"},"location":{"type":"geo\_point"},"mainCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"postDate":{"type":"string"},"subCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"tags":{"type":"string","store":true,"index\_analyzer":"keyword"},"title":{"type":"multi\_field","fields":{"title":{"type":"string"},"title.autocomplete":{"type":"string","store":true,"index\_analyzer":"autocomplete","search\_analyzer":"autocomplete\_search","include\_in\_all":false},"title.untouched":{"type":"string","index":"not\_analyzed","omit\_norms":true,"index\_options":"docs","include\_in\_all":false}}},"user":{"type":"string","store":true,"index\_analyzer":"keyword"},"version":{"type":"long"}}}}]:  
> org.elasticsearch.index.mapper.MapperParsingException: Analyzer  
> [autocomplete] not found for field [title.autocomplete]  
> at  
> org.elasticsearch.index.mapper.core.TypeParsers.parseField(TypeParsers.java:107)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.core.StringFieldMapper$TypeParser.parse(StringFieldMapper.java:150)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.multifield.MultiFieldMapper$TypeParser.parse(MultiFieldMapper.java:130)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:263)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:219)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:176)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:314)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:193)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.processMapping(IndicesClusterStateService.java:417)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.applyMappings(IndicesClusterStateService.java:381)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:179)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:414)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
> [elasticsearch-0.90.7.jar:]  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> [rt.jar:1.7.0\_45]  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> [rt.jar:1.7.0\_45]  
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0\_45]

--  
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/86b7430c-574f-4110-b4ae-948ec1329c89%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/86b7430c-574f-4110-b4ae-948ec1329c89%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:** ![zkidkid](https://avatars.discourse-cdn.com/v4/letter/z/fbc32d/32.png) [@zkidkid](https://discuss.elastic.co/u/zkidkid)\
**Post date:** [December 19, 2013, 4:18am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/3 "2013-12-19T04:18:51Z")

</div>

You could also check your custom analyzer like that:

your\_index: Index which use your custom analyzer.

http://your\_server\_ip:9200/your\_index/\_analyze?text=your\_query\_here

--  
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/d5a63a84-399e-4e4c-8872-4c07d75cc32e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d5a63a84-399e-4e4c-8872-4c07d75cc32e%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:** ![Joshua\_Corb](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Joshua\_Corb](https://discuss.elastic.co/u/Joshua_Corb)\
**Post date:** [December 19, 2013, 4:58am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/4 "2013-12-19T04:58:55Z")

</div>

even with that change we are still running into the same issue. It seems  
that Elasticsearch isn't reading the config correctly, and never creates  
the index correctly.

On Wed, Dec 18, 2013 at 8:18 PM, kidkid [zkidkid@gmail.com](mailto:zkidkid@gmail.com) wrote:

> You could also check your custom analyzer like that:
> 
> your\_index: Index which use your custom analyzer.
> 
> http://your\_server\_ip:9200/your\_index/\_analyze?text=your\_query\_here
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/d5a63a84-399e-4e4c-8872-4c07d75cc32e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d5a63a84-399e-4e4c-8872-4c07d75cc32e%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/CAG%2BZfhAHC51DYTCROgCa6zeQd2hDJCcNGuGdxKQM2FgUwX0D9w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%2BZfhAHC51DYTCROgCa6zeQd2hDJCcNGuGdxKQM2FgUwX0D9w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![zkidkid](https://avatars.discourse-cdn.com/v4/letter/z/fbc32d/32.png) [@zkidkid](https://discuss.elastic.co/u/zkidkid)\
**Post date:** [December 19, 2013, 7:25am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/5 "2013-12-19T07:25:00Z")

</div>

I think you should check step by step:

1. Your custom analyzer is fine.
2. Your index have been using your custom analyzer fines.

And if you still get problem, please give more info so other could try to  
reproduce it and help you.

On Wednesday, December 18, 2013 8:58:55 PM UTC-8, Joshua Corb wrote:

> even with that change we are still running into the same issue. It seems  
> that Elasticsearch isn't reading the config correctly, and never creates  
> the index correctly.
> 
> On Wed, Dec 18, 2013 at 8:18 PM, kidkid \<[zki...@gmail.com](mailto:zki...@gmail.com) \<javascript:\>\>wrote:
> 
> > You could also check your custom analyzer like that:
> > 
> > your\_index: Index which use your custom analyzer.
> > 
> > http://your\_server\_ip:9200/your\_index/\_analyze?text=your\_query\_here
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/d5a63a84-399e-4e4c-8872-4c07d75cc32e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d5a63a84-399e-4e4c-8872-4c07d75cc32e%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/e93705c9-6d37-4f94-a798-34491f8cb29e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e93705c9-6d37-4f94-a798-34491f8cb29e%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:** ![Joshua\_Corb](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Joshua\_Corb](https://discuss.elastic.co/u/Joshua_Corb)\
**Post date:** [December 19, 2013, 7:37pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/6 "2013-12-19T19:37:17Z")

</div>

The config is fine...What piece of information would you need?

On Wed, Dec 18, 2013 at 11:25 PM, kidkid [zkidkid@gmail.com](mailto:zkidkid@gmail.com) wrote:

> I think you should check step by step:
> 
> 1. Your custom analyzer is fine.
> 2. Your index have been using your custom analyzer fines.
> 
> And if you still get problem, please give more info so other could try to  
> reproduce it and help you.
> 
> On Wednesday, December 18, 2013 8:58:55 PM UTC-8, Joshua Corb wrote:
> 
> > even with that change we are still running into the same issue. It seems  
> > that Elasticsearch isn't reading the config correctly, and never creates  
> > the index correctly.
> > 
> > On Wed, Dec 18, 2013 at 8:18 PM, kidkid [zki...@gmail.com](mailto:zki...@gmail.com) wrote:
> > 
> > > You could also check your custom analyzer like that:
> > > 
> > > your\_index: Index which use your custom analyzer.
> > > 
> > > http://your\_server\_ip:9200/your\_index/\_analyze?text=your\_query\_here
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > topic/elasticsearch/8oB1lM8sUHg/unsubscribe.  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/d5a63a84-399e-4e4c-8872-4c07d75cc32e%  
> > > [40googlegroups.com](http://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 a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/e93705c9-6d37-4f94-a798-34491f8cb29e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e93705c9-6d37-4f94-a798-34491f8cb29e%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/CAG%2BZfhC1wBTkn0Mdtx4qmsLiWsD3aHC3k0OqmeTDb5fGM%2BwKkw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%2BZfhC1wBTkn0Mdtx4qmsLiWsD3aHC3k0OqmeTDb5fGM%2BwKkw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [December 19, 2013, 11:04pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/7 "2013-12-19T23:04:10Z")

</div>

On Wednesday, December 18, 2013 12:09:41 PM UTC-7, Joshua Corb wrote:

> We are running into an issue where we are getting mapping issues. We are  
> have tried on both Ubuntu and OSX. We are using java 1.7. Attached is our  
> node configuration, and below is the error we are getting.
> 
> 11:12:47,856 WARN [org.elasticsearch.indices.cluster]  
> (elasticsearch[Nemesis][clusterService#updateTask][T#1]) [Nemesis] [need]  
> failed to add mapping [need], source  
> [{"need":{"properties":{"defaultTextValue":{"type":"string"},"description":{"type":"string"},"endDate":{"type":"string"},"id":{"type":"string"},"imageURL":{"type":"string"},"location":{"type":"geo\_point"},"mainCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"postDate":{"type":"string"},"subCategory":{"type":"string","store":true,"index\_analyzer":"keyword"},"tags":{"type":"string","store":true,"index\_analyzer":"keyword"},"title":{"type":"multi\_field","fields":{"title":{"type":"string"},"title.autocomplete":{"type":"string","store":true,"index\_analyzer":"autocomplete","search\_analyzer":"autocomplete\_search","include\_in\_all":false},"title.untouched":{"type":"string","index":"not\_analyzed","omit\_norms":true,"index\_options":"docs","include\_in\_all":false}}},"user":{"type":"string","store":true,"index\_analyzer":"keyword"},"version":{"type":"long"}}}}]:  
> org.elasticsearch.index.mapper.MapperParsingException: Analyzer  
> [autocomplete] not found for field [title.autocomplete]  
> at  
> org.elasticsearch.index.mapper.core.TypeParsers.parseField(TypeParsers.java:107)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.core.StringFieldMapper$TypeParser.parse(StringFieldMapper.java:150)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.multifield.MultiFieldMapper$TypeParser.parse(MultiFieldMapper.java:130)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:263)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:219)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:176)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:314)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:193)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.processMapping(IndicesClusterStateService.java:417)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.applyMappings(IndicesClusterStateService.java:381)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:179)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:414)  
> [elasticsearch-0.90.7.jar:]  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
> [elasticsearch-0.90.7.jar:]  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> [rt.jar:1.7.0\_45]  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> [rt.jar:1.7.0\_45]  
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0\_45]

Hi Joshua,

You have an issue in your elasticsearch.yml file, instead of:

index.analysis.analyzer.autocomplete:  
type: custom  
tokenizer: whitespace  
filter: lowercase

You need to put the filter into an array (because it's a list of filters to  
be applied), so it would look like so:

index.analysis.analyzer.autocomplete:  
type: custom  
tokenizer: whitespace  
filter: [lowercase]

Using your configuration and making this change to all the custom  
analyzers, I was able to create an index and analyze text with the  
"autocomplete" analyzer.

;; Lee Hinman

--  
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/3713dcf7-0954-4996-bace-129bcefc2633%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3713dcf7-0954-4996-bace-129bcefc2633%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:** ![Joshua\_Corb](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Joshua\_Corb](https://discuss.elastic.co/u/Joshua_Corb)\
**Post date:** [December 19, 2013, 11:40pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/8 "2013-12-19T23:40:21Z")

</div>

I have a feeling the issue is the application has a embedded version of  
Elasticsearch. Is there a default path that Elasticsearch will look for a  
configuration? Or a java variable I can add that will force it to look in a  
specific path?

On Thu, Dec 19, 2013 at 3:04 PM, Lee Hinman [matthew.hinman@gmail.com](mailto:matthew.hinman@gmail.com)wrote:

> On Wednesday, December 18, 2013 12:09:41 PM UTC-7, Joshua Corb wrote:
> 
> > We are running into an issue where we are getting mapping issues. We are  
> > have tried on both Ubuntu and OSX. We are using java 1.7. Attached is our  
> > node configuration, and below is the error we are getting.
> > 
> > 11:12:47,856 WARN [org.elasticsearch.indices.cluster]  
> > (elasticsearch[Nemesis][clusterService#updateTask][T#1]) [Nemesis]  
> > [need] failed to add mapping [need], source [{"need":{"properties":{"  
> > defaultTextValue":{"type":"string"},"description":{"type"  
> > :"string"},"endDate":{"type":"string"},"id":{"type":"string"  
> > },"imageURL":{"type":"string"},"location":{"type":"geo\_  
> > point"},"mainCategory":{"type":"string","store":true,"index\_  
> > analyzer":"keyword"},"postDate":{"type":"string"},"  
> > subCategory":{"type":"string","store":true,"index\_analyzer":  
> > "keyword"},"tags":{"type":"string","store":true,"index\_  
> > analyzer":"keyword"},"title":{"type":"multi\_field","fields":  
> > {"title":{"type":"string"},"title.autocomplete":{"type":"  
> > string","store":true,"index\_analyzer":"autocomplete","search\_analyzer":"  
> > autocomplete\_search","include\_in\_all":false},"title.  
> > untouched":{"type":"string","index":"not\_analyzed","omit\_  
> > norms":true,"index\_options":"docs","include\_in\_all":false}}  
> > },"user":{"type":"string","store":true,"index\_analyzer":"  
> > keyword"},"version":{"type":"long"}}}}]: org.elasticsearch.index.mapper.MapperParsingException:  
> > Analyzer [autocomplete] not found for field [title.autocomplete]  
> > at org.elasticsearch.index.mapper.core.TypeParsers.  
> > parseField(TypeParsers.java:107) [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.core.StringFieldMapper$  
> > TypeParser.parse(StringFieldMapper.java:150) [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.multifield.  
> > MultiFieldMapper$TypeParser.parse(MultiFieldMapper.java:130)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.object.ObjectMapper$  
> > TypeParser.parseProperties(ObjectMapper.java:263)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.object.ObjectMapper$  
> > TypeParser.parse(ObjectMapper.java:219) [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.DocumentMapperParser.  
> > parse(DocumentMapperParser.java:176) [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:314)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:193)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.indices.cluster.IndicesClusterStateService.  
> > processMapping(IndicesClusterStateService.java:417)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.indices.cluster.IndicesClusterStateService.  
> > applyMappings(IndicesClusterStateService.java:381)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.indices.cluster.IndicesClusterStateService.  
> > clusterChanged(IndicesClusterStateService.java:179)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.cluster.service.InternalClusterService$  
> > UpdateTask.run(InternalClusterService.java:414)  
> > [elasticsearch-0.90.7.jar:]  
> > at org.elasticsearch.common.util.concurrent.  
> > PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(  
> > PrioritizedEsThreadPoolExecutor.java:135) [elasticsearch-0.90.7.jar:]  
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > [rt.jar:1.7.0\_45]  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > [rt.jar:1.7.0\_45]  
> > at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0\_45]
> 
> Hi Joshua,
> 
> You have an issue in your elasticsearch.yml file, instead of:
> 
> index.analysis.analyzer.autocomplete:  
> type: custom  
> tokenizer: whitespace  
> filter: lowercase
> 
> You need to put the filter into an array (because it's a list of filters  
> to be applied), so it would look like so:
> 
> index.analysis.analyzer.autocomplete:  
> type: custom  
> tokenizer: whitespace  
> filter: [lowercase]
> 
> Using your configuration and making this change to all the custom  
> analyzers, I was able to create an index and analyze text with the  
> "autocomplete" analyzer.
> 
> ;; Lee Hinman
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/3713dcf7-0954-4996-bace-129bcefc2633%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3713dcf7-0954-4996-bace-129bcefc2633%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/CAG%2BZfhDPNHRaoFc%2BatT5BNRz7BSDbboeGW1h8zSYPpi\_MrAFmQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%2BZfhDPNHRaoFc%2BatT5BNRz7BSDbboeGW1h8zSYPpi_MrAFmQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [December 20, 2013, 12:46am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/9 "2013-12-20T00:46:00Z")

</div>

On Thursday, December 19, 2013 4:40:21 PM UTC-7, Joshua Corb wrote:

> I have a feeling the issue is the application has a embedded version of  
> Elasticsearch. Is there a default path that Elasticsearch will look for a  
> configuration? Or a java variable I can add that will force it to look in a  
> specific path?

You can configure it with the `-Des.path.conf` jvm configuration variable.  
You can also retrieve the currently configured settings with the following:

curl 'localhost:9200/\_nodes/settings?pretty'

which will look something like this (this example includes how your  
analyzers will look):

{  
"ok" : true,  
"cluster\_name" : "vouchd-search",  
"nodes" : {  
"nKB19zwmSY-a56JGPWqj9Q" : {  
"name" : "Midas",  
"transport\_address" : "inet[/10.175.76.85:9300]",  
"hostname" : "Xanadu.local",  
"version" : "0.90.7",  
"http\_address" : "inet[/10.175.76.85:9200]",  
"settings" : {  
"path.home" : "/Users/hinmanm/esi/elasticsearch-0.90.7",  
"foreground" : "yes",  
"index.analysis.analyzer.autocomplete.type" : "custom",  
"index.analysis.analyzer.autocomplete.filter.0" : "lowercase",  
"index.analysis.analyzer.autocomplete\_search.tokenizer" : "whitespace",  
"index.analysis.analyzer.autocomplete\_search.type" : "custom",  
"cluster.name" : "vouchd-search",  
"index.analysis.analyzer.autocomplete\_search.filter.0" : "lowercase",  
"index.analysis.filter.auto\_edge\_ngram.max\_gram" : "15",  
"index.analysis.filter.auto\_edge\_ngram.min\_gram" : "2",  
"index.analysis.filter.auto\_edge\_ngram.type" : "edgeNGram",  
"index.analysis.analyzer.autocomplete.tokenizer" : "whitespace",  
"name" : "Midas",  
"path.logs" : "/Users/hinmanm/esi/elasticsearch-0.90.7/logs"  
}  
}  
}  
}

--  
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/104edaa2-3c93-4021-a6ae-8b616ec6a516%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/104edaa2-3c93-4021-a6ae-8b616ec6a516%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:** ![Joshua\_Corb](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Joshua\_Corb](https://discuss.elastic.co/u/Joshua_Corb)\
**Post date:** [December 21, 2013, 5:45pm UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/10 "2013-12-21T17:45:11Z")

</div>

So it seems not to be on the server side but on the client side. It doesn't  
seem to connect to a server, and brings some sort of local instance up.  
Within the searchContext-elasticsearch.xml

\<?xml version="1.0" encoding="UTF-8"?\>

\<elasticsearch:node-client id="client" cluster-name="search-cluster" \>

```
<bean id="elasticsearchTemplate"

```

class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate"\>

```
<bean id="generalElasticsearchTemplate"

```

class="com.vouchd.search.core.GeneralElasticsearchTemplate"\>

```
<elasticsearch:repositories base-package="com.vouchd.search.repository"
    repository-impl-postfix="Impl"

```

factory-class="com.vouchd.search.repository.ElasticsearchRepositoryFactoryBean"  
/\>

How can I make this section read from a specific file to load the mappings?  
I've also tried passing the settings path through the jvm settings.

On Thu, Dec 19, 2013 at 4:46 PM, Lee Hinman [matthew.hinman@gmail.com](mailto:matthew.hinman@gmail.com)wrote:

> On Thursday, December 19, 2013 4:40:21 PM UTC-7, Joshua Corb wrote:
> 
> > I have a feeling the issue is the application has a embedded version of  
> > Elasticsearch. Is there a default path that Elasticsearch will look for a  
> > configuration? Or a java variable I can add that will force it to look in a  
> > specific path?
> 
> You can configure it with the `-Des.path.conf` jvm configuration variable.  
> You can also retrieve the currently configured settings with the following:
> 
> curl 'localhost:9200/\_nodes/settings?pretty'
> 
> which will look something like this (this example includes how your  
> analyzers will look):
> 
> {  
> "ok" : true,  
> "cluster\_name" : "vouchd-search",  
> "nodes" : {  
> "nKB19zwmSY-a56JGPWqj9Q" : {  
> "name" : "Midas",  
> "transport\_address" : "inet[/10.175.76.85:9300]",  
> "hostname" : "Xanadu.local",  
> "version" : "0.90.7",  
> "http\_address" : "inet[/10.175.76.85:9200]",  
> "settings" : {  
> "path.home" : "/Users/hinmanm/esi/elasticsearch-0.90.7",  
> "foreground" : "yes",  
> "index.analysis.analyzer.autocomplete.type" : "custom",  
> "index.analysis.analyzer.autocomplete.filter.0" : "lowercase",  
> "index.analysis.analyzer.autocomplete\_search.tokenizer" : "whitespace",  
> "index.analysis.analyzer.autocomplete\_search.type" : "custom",  
> "cluster.name" : "vouchd-search",  
> "index.analysis.analyzer.autocomplete\_search.filter.0" : "lowercase",  
> "index.analysis.filter.auto\_edge\_ngram.max\_gram" : "15",  
> "index.analysis.filter.auto\_edge\_ngram.min\_gram" : "2",  
> "index.analysis.filter.auto\_edge\_ngram.type" : "edgeNGram",  
> "index.analysis.analyzer.autocomplete.tokenizer" : "whitespace",  
> "name" : "Midas",  
> "path.logs" : "/Users/hinmanm/esi/elasticsearch-0.90.7/logs"  
> }  
> }  
> }  
> }
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/8oB1lM8sUHg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/104edaa2-3c93-4021-a6ae-8b616ec6a516%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/104edaa2-3c93-4021-a6ae-8b616ec6a516%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/CAG%2BZfhDK1deN3ZQc7iGk9E4nYqFaDmKNc-7YGmhve8mBF7y-XQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%2BZfhDK1deN3ZQc7iGk9E4nYqFaDmKNc-7YGmhve8mBF7y-XQ%40mail.gmail.com).  
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:59am UTC](https://discuss.elastic.co/t/autocomplete-mapping-error/14938/11 "2017-07-06T01:59:48Z")

</div>


