# Non linguistic text in piece of content

**URL:** <https://discuss.elastic.co/t/non-linguistic-text-in-piece-of-content/201813>\
**Category:** Elasticsearch\
**Created:** [October 1, 2019, 1:32pm UTC](https://discuss.elastic.co/t/non-linguistic-text-in-piece-of-content/201813 "2019-10-01T13:32:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmericW](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emericw/32/56381_2.png) [@EmericW](https://discuss.elastic.co/u/EmericW)\
**Post date:** [October 1, 2019, 1:32pm UTC](https://discuss.elastic.co/t/non-linguistic-text-in-piece-of-content/201813/1 "2019-10-01T13:32:14Z")

</div>

Hi,

I have the following piece of text in a field using the standard tokenizer.

`...erlegging van het EAB.<br /> Cass. 31 mei 2016, AR P.16.0606.N`

The standard tokenizer splits the `P.16.0606.N` into different parts due to the period. Because of this i get a lot of unexpected results at search time when searching for `P.16.0606.N`.  
The `P` part is matched in every code starting with a `p`, like `P.10.1512.N`.

What is the suggested way to search a piece of non linguistic text inside a larger text?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [October 4, 2019, 10:13am UTC](https://discuss.elastic.co/t/non-linguistic-text-in-piece-of-content/201813/2 "2019-10-04T10:13:02Z")

</div>

This would require an appropriate [Analyzer](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) configuration.  
There's a multitude of options available depending on what you want to do.  
You could index product codes like this into a separate searchable field or leave them intact amongst the English words but would have to take care that a rule designed to keep `P.16.0606.N` together as a single term does not also keep the full stop in words at the ends of sentences like this `one.`

---

<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:** [November 1, 2019, 10:13am UTC](https://discuss.elastic.co/t/non-linguistic-text-in-piece-of-content/201813/3 "2019-11-01T10:13:08Z")

</div>

Closed on November 1, 2019, 10:13am UTC

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