# Querying special characters and symbols for nested and not nested fields

**URL:** <https://discuss.elastic.co/t/querying-special-characters-and-symbols-for-nested-and-not-nested-fields/147242>\
**Category:** Elasticsearch\
**Created:** [September 4, 2018, 3:55pm UTC](https://discuss.elastic.co/t/querying-special-characters-and-symbols-for-nested-and-not-nested-fields/147242 "2018-09-04T15:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pd\_tester](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pd\_tester](https://discuss.elastic.co/u/pd_tester)\
**Post date:** [September 4, 2018, 3:55pm UTC](https://discuss.elastic.co/t/querying-special-characters-and-symbols-for-nested-and-not-nested-fields/147242/1 "2018-09-04T15:55:37Z")

</div>

I have these symbols ![CF7CB807](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d518c9dac98014ee179ca3b1b0c8c32005f877e1.png)

we have successfully persisted data for those but we we're having problems when retrieving those data for both nested and not nested fields. and also with wildcard

Can you guys help me how can I construct correct elasticsearch query with this.

unable to retrieve data example  
(not nested) value = \* sample#test#data \*  
(not nested) = sample#test#data  
(nested) = sample#test#data  
(nested) = \* sample#test#data \*

Mapping:  
"normalizer": {  
"testnormalizer": {  
"type": "custom",  
"char\_filter": ,  
"filter": [  
"lowercase",  
"asciifolding"  
]  
}  
}

Nested fields mapping:  
"nestedflds": {  
"type": "nested",  
"properties": {  
"attributeName": {  
"type": "keyword",  
"normalizer": "testnormalizer"  
},  
"attributeValue": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword"  
}  
},  
"fielddata": true  
}  
}  
}

Not nested mapping:  
"testId": {  
"type": "keyword",  
"normalizer": "testnormalizer"  
},

---

<div class="post-metadata">

**Author:** ![pd\_tester](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pd\_tester](https://discuss.elastic.co/u/pd_tester)\
**Post date:** [September 4, 2018, 4:54pm UTC](https://discuss.elastic.co/t/querying-special-characters-and-symbols-for-nested-and-not-nested-fields/147242/2 "2018-09-04T16:54:45Z")

</div>

Anyone, please help

---

<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 2, 2018, 4:54pm UTC](https://discuss.elastic.co/t/querying-special-characters-and-symbols-for-nested-and-not-nested-fields/147242/3 "2018-10-02T16:54:47Z")

</div>

Closed on October 2, 2018, 4:54pm UTC

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