# Search #/@'s on ElasticSearch

**URL:** <https://discuss.elastic.co/t/search-s-on-elasticsearch/288157>\
**Category:** Elasticsearch\
**Created:** [November 1, 2021, 3:51pm UTC](https://discuss.elastic.co/t/search-s-on-elasticsearch/288157 "2021-11-01T15:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joran/32/77625_2.png) [@Joran](https://discuss.elastic.co/u/Joran)\
**Post date:** [November 1, 2021, 3:51pm UTC](https://discuss.elastic.co/t/search-s-on-elasticsearch/288157/1 "2021-11-01T15:51:45Z")

</div>

Hi,

We attempted to index @/#'s on our Elasticsearch, so we could search for example "#bitcoin". See here our settings for our Index "users" (some settings I replaced with "PRIVATE"):

"users": {  
"settings": {  
"index": {  
"number\_of\_shards": "PRIVATE",  
"provided\_name": "users",  
"creation\_date": "PRIVATE",  
"analysis": {  
"filter": {  
"hashtag\_as\_alphanum": {  
"type": "word\_delimiter",  
"type\_table": [  
"# =\> ALPHANUM",  
"@ =\> ALPHANUM"  
]  
}  
},  
"analyzer": {  
"hashtag": {  
"filter": [  
"lowercase",  
"hashtag\_as\_alphanum"  
],  
"char\_filter": "space\_hashtags",  
"type": "custom",  
"tokenizer": "whitespace"  
}  
},  
"char\_filter": {  
"space\_hashtags": {  
"type": "mapping",  
"mappings": [  
"#=\>|#"  
]  
}  
}  
},  
"number\_of\_replicas": "1",  
"uuid": "PRIVATE",  
"version": {  
"created": "135217827"  
}  
}  
}  
}

When, in Python, I try to search for "#bitcoin":  
resp = requests.get(ELASTICSEARCH\_URL + "/\_search", auth=AUTH, params=params)

with params = {"q": "#bitcoin"}, I still get results with just "bitcoin". I followed this guide: [Finding Hashtags in&nbsp;Elasticsearch 1.7](https://www.pixlee.com/blog/finding-hashtags-in-elasticsearch-1-7/), and tried: "\_analyze?analyzer=hashtag", but have not managed to query #/@'s successfully. Would someone be able to share an example query by any chance?

Thank you in advance!

---

<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 29, 2021, 3:52pm UTC](https://discuss.elastic.co/t/search-s-on-elasticsearch/288157/2 "2021-11-29T15:52:17Z")

</div>

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