# HOWTO : Test new inserted docs against a list of 14000 words

**URL:** <https://discuss.elastic.co/t/howto-test-new-inserted-docs-against-a-list-of-14000-words/35278>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 7:55am UTC](https://discuss.elastic.co/t/howto-test-new-inserted-docs-against-a-list-of-14000-words/35278 "2015-11-23T07:55:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tybreizh29190](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tybreizh29190](https://discuss.elastic.co/u/tybreizh29190)\
**Post date:** [November 23, 2015, 7:55am UTC](https://discuss.elastic.co/t/howto-test-new-inserted-docs-against-a-list-of-14000-words/35278/1 "2015-11-23T07:55:53Z")

</div>

Hello  
I have to insert xml docs (time coded word, converted into a mapping for each word) into Elastic Search.  
I have to check if some words of a 14.000 words list are present into the newly inserted doc.  
The 14.000 words are upper case, as my words are upper or/and lower.  
As it's in French we have words with accents, like "é" the uppercase is E not É.  
How can/should I do that ?  
Here is how part of a record looks like:

> ,"wordlist":[{"content":"Hello","conf":"0.997","stime":"0.000","dur":"0.190"},{"content":"world","conf":"1.000","stime":"0.190","dur":"0.210"},

I can change my mapping to add a plain text field.

My first guess was to add a plain text with only upper case characters, and do 14.000 requests, that's ugly but it's me only idea.  
thanks for your help  
marc

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 23, 2015, 11:53am UTC](https://discuss.elastic.co/t/howto-test-new-inserted-docs-against-a-list-of-14000-words/35278/2 "2015-11-23T11:53:24Z")

</div>

> [@tybreizh29190](#):
>
> I have to check if some words of a 14.000 words list are present into the newly inserted doc.

What exactly is your purpose with doing that? The approach you want to implement might depend on your use-case:

If you want to trigger some action if any of these words appears in a newly indexed document the Percolator might be what you want to use:

> **[Percolate query | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html)**

Others may know better solutions.

Regards,  
Isabel

---

<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:36pm UTC](https://discuss.elastic.co/t/howto-test-new-inserted-docs-against-a-list-of-14000-words/35278/3 "2017-07-05T23:36:36Z")

</div>

Closed on July 5, 2017, 11:36pm UTC


