# Filtering special characters in search results

**URL:** <https://discuss.elastic.co/t/filtering-special-characters-in-search-results/20267>\
**Category:** Elasticsearch\
**Created:** [October 15, 2014, 3:36pm UTC](https://discuss.elastic.co/t/filtering-special-characters-in-search-results/20267 "2014-10-15T15:36:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jac](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jac](https://discuss.elastic.co/u/Jac)\
**Post date:** [October 15, 2014, 3:36pm UTC](https://discuss.elastic.co/t/filtering-special-characters-in-search-results/20267/1 "2014-10-15T15:36:43Z")

</div>

Hello everyone,

We use currently ES to index documents with the mapper-attachments plugin.  
Sometimes, files that we index can contain some special characters, such as  
special symbols (ex : cellphone symbol) added in word.  
In our case, special characters have nothing to do with language, but only  
graphical symbol in word.

Finally, the search results will return things like  
\n� _000_ 123 456 \n

Since indexed files are encoded in base64 and stored directly in ES without  
any copy, I don't think we shall filter the files before its storage in ES.  
(Otherwise we can't retrieve the same document as it was before indexing)

Maybe we should try to clean the search result by eliminating these  
unreadable characters.

Do you have some ideas please?

Thank you very much.

--  
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/cd988a84-2c64-425b-b522-86f74311390e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cd988a84-2c64-425b-b522-86f74311390e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:56am UTC](https://discuss.elastic.co/t/filtering-special-characters-in-search-results/20267/2 "2017-07-06T00:56:02Z")

</div>


