# Wildcard search / query via REST request URI

**URL:** <https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837>\
**Category:** Elasticsearch\
**Created:** [May 30, 2014, 6:18pm UTC](https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837 "2014-05-30T18:18:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lam\_Pham](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@Lam\_Pham](https://discuss.elastic.co/u/Lam_Pham)\
**Post date:** [May 30, 2014, 6:18pm UTC](https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837/1 "2014-05-30T18:18:06Z")

</div>

Hi,  
Is it possible to do a wildcard search via  
the request URI? For example  
[http://localhost:9200/index1/type1/\_search?q=type1.text\_ID=\*](http://localhost:9200/index1/type1/_search?q=type1.text_ID=*)

If yes, what is the correct format? I tried the above  
format and did not get any hit for my data.

I'm new to ElasticSearch. So, please pardon me if  
this question had been asked before. I did some search  
but could not find the answer.

Thanks,  
Lam

--  
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/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 31, 2014, 3:13am UTC](https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837/2 "2014-05-31T03:13:55Z")

</div>

URI Search is mapped to query string

See [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-uri-request.html)  
And [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html)

Although it should work, you should not use that in production. See [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html#query-dsl-wildcard-query)

> Note this query can be slow, as it needs to iterate over many terms.

For a end user query, you should define a better analyzer than the default one and use ngrams.

My 2 cents.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 mai 2014 à 20:18, Lam Pham [lacda97@gmail.com](mailto:lacda97@gmail.com) a écrit :

Hi,  
Is it possible to do a wildcard search via  
the request URI? For example  
[http://localhost:9200/index1/type1/\_search?q=type1.text\_ID=](http://localhost:9200/index1/type1/_search?q=type1.text_ID=)\*

If yes, what is the correct format? I tried the above  
format and did not get any hit for my data.

I'm new to Elasticsearch. So, please pardon me if  
this question had been asked before. I did some search  
but could not find the answer.

## Thanks, Lam

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/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/F1B0996A-FB32-4308-B23C-ED5809DA5CBF%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F1B0996A-FB32-4308-B23C-ED5809DA5CBF%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Lam\_Pham](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@Lam\_Pham](https://discuss.elastic.co/u/Lam_Pham)\
**Post date:** [June 1, 2014, 4:12am UTC](https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837/3 "2014-06-01T04:12:44Z")

</div>

Thanks David.  
On Friday, May 30, 2014 11:14:15 PM UTC-4, David Pilato wrote:

> URI Search is mapped to query string
> 
> See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-uri-request.html)  
> And  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html)
> 
> Although it should work, you should not use that in production. See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html#query-dsl-wildcard-query)
> 
> > Note this query can be slow, as it needs to iterate over many terms.
> 
> For a end user query, you should define a better analyzer than the default  
> one and use ngrams.
> 
> My 2 cents.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 30 mai 2014 à 20:18, Lam Pham \<[lac...@gmail.com](mailto:lac...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi,  
> Is it possible to do a wildcard search via  
> the request URI? For example  
> [http://localhost:9200/index1/type1/\_search?q=type1.text\_ID=](http://localhost:9200/index1/type1/_search?q=type1.text_ID=)\*
> 
> If yes, what is the correct format? I tried the above  
> format and did not get any hit for my data.
> 
> I'm new to Elasticsearch. So, please pardon me if  
> this question had been asked before. I did some search  
> but could not find the answer.
> 
> Thanks,  
> Lam
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c516a69e-eb3d-47ba-bef5-3e56823b7d5f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/fae15ce2-53ca-4e2d-b9e0-58c4cfb5f368%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fae15ce2-53ca-4e2d-b9e0-58c4cfb5f368%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, 1:25am UTC](https://discuss.elastic.co/t/wildcard-search-query-via-rest-request-uri/17837/4 "2017-07-06T01:25:29Z")

</div>


