# Completion Suggester with a Context and indexing field (mixte lowercase or uppercase ....)

**URL:** <https://discuss.elastic.co/t/completion-suggester-with-a-context-and-indexing-field-mixte-lowercase-or-uppercase/199499>\
**Category:** Elasticsearch\
**Created:** [September 14, 2019, 11:08am UTC](https://discuss.elastic.co/t/completion-suggester-with-a-context-and-indexing-field-mixte-lowercase-or-uppercase/199499 "2019-09-14T11:08:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fallphenix](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@fallphenix](https://discuss.elastic.co/u/fallphenix)\
**Post date:** [September 14, 2019, 11:08am UTC](https://discuss.elastic.co/t/completion-suggester-with-a-context-and-indexing-field-mixte-lowercase-or-uppercase/199499/1 "2019-09-14T11:08:51Z")

</div>

Hi,  
When using Completion Suggester with a Context, i note it is not possible to context\_type field as an indexing field (lowercase or uppercase ....).  
To test, you can use the same example in doc :  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#context-suggester](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#context-suggester)

Search for is OK :  
...  
"contexts": {  
"place\_type": ["cafe"]  
}

but KO for :  
...  
"contexts": {  
"place\_type": ["Cafe"]  
}  
.....

Can someone explane me what it is not working.

Thanks

---

<div class="post-metadata">

**Author:** ![fallphenix](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@fallphenix](https://discuss.elastic.co/u/fallphenix)\
**Post date:** [September 14, 2019, 12:02pm UTC](https://discuss.elastic.co/t/completion-suggester-with-a-context-and-indexing-field-mixte-lowercase-or-uppercase/199499/2 "2019-09-14T12:02:29Z")

</div>

i aslo see for performance issue, empty context is not allow at version \>= 7.0.0.

> <https://github.com/elastic/elasticsearch/pull/30712>

Perhap in the same way, they not allow at index time to analyse context\_type

---

<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:** [October 12, 2019, 12:02pm UTC](https://discuss.elastic.co/t/completion-suggester-with-a-context-and-indexing-field-mixte-lowercase-or-uppercase/199499/3 "2019-10-12T12:02:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
