# Can I skip completion suggester indexing for selected items?

**URL:** <https://discuss.elastic.co/t/can-i-skip-completion-suggester-indexing-for-selected-items/44149>\
**Category:** Elasticsearch\
**Created:** [March 11, 2016, 12:37pm UTC](https://discuss.elastic.co/t/can-i-skip-completion-suggester-indexing-for-selected-items/44149 "2016-03-11T12:37:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melwa](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@melwa](https://discuss.elastic.co/u/melwa)\
**Post date:** [March 11, 2016, 12:37pm UTC](https://discuss.elastic.co/t/can-i-skip-completion-suggester-indexing-for-selected-items/44149/1 "2016-03-11T12:37:24Z")

</div>

Hello,  
I have a shop where the vast majority of the items indexed are not available anymore and should not be shown on autocomplete requests, but should be available to search.

At first I thought about using the context suggester to filter out the unwanted results, but I got worried about the wasted performance of indexing so many hidden items to the in memory FST when most of them will always be filtered out (roughly 4000 out of 400.000 items should appear on autocompletion). It seems like such a waste of memory.

I tried having an empty string as the completion field for the unwanted items but I got an `MapperParsingException[no object mapping found for null value...`.

Is there any way to skip adding some items to the completion FST at index time ?

Thanks!

---

<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 5, 2017, 11:09pm UTC](https://discuss.elastic.co/t/can-i-skip-completion-suggester-indexing-for-selected-items/44149/2 "2017-07-05T23:09:11Z")

</div>


