# Query text which starting with slash by ElasticSearch 6.4.3

**URL:** <https://discuss.elastic.co/t/query-text-which-starting-with-slash-by-elasticsearch-6-4-3/172892>\
**Category:** Elasticsearch\
**Created:** [March 19, 2019, 4:30am UTC](https://discuss.elastic.co/t/query-text-which-starting-with-slash-by-elasticsearch-6-4-3/172892 "2019-03-19T04:30:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 19, 2019, 9:58am UTC](https://discuss.elastic.co/t/query-text-which-starting-with-slash-by-elasticsearch-6-4-3/172892/6 "2019-03-19T09:58:09Z")

</div>

Not exactly. You need to define an analyzer first. Then use the analyzer in your mapping.  
Then you can try just with a `term` or `match` query instead of a `prefix` query.

If you need further help, please provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

_[View the full topic](https://discuss.elastic.co/t/query-text-which-starting-with-slash-by-elasticsearch-6-4-3/172892)._
