# Can we use two wildterm in a wildcard query?

**URL:** <https://discuss.elastic.co/t/can-we-use-two-wildterm-in-a-wildcard-query/22705>\
**Category:** Elasticsearch\
**Created:** [March 17, 2015, 12:07pm UTC](https://discuss.elastic.co/t/can-we-use-two-wildterm-in-a-wildcard-query/22705 "2015-03-17T12:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piyush_mishra/32/809_2.png) [@Piyush\_Mishra](https://discuss.elastic.co/u/Piyush_Mishra)\
**Post date:** [March 17, 2015, 12:07pm UTC](https://discuss.elastic.co/t/can-we-use-two-wildterm-in-a-wildcard-query/22705/1 "2015-03-17T12:07:40Z")

</div>

Hi EveryOne,

I want to run below query but I am getting no results. Please let me know  
if it feasible.

{  
"query": {  
"bool": {  
"must": [  
{  
"nested": {  
"path": "tokens",  
"query": {  
"bool": {  
"must": [  
{  
"wildcard": {  
"tokens.name": "_value"  
}  
},  
{  
"wildcard": {  
"tokens.name": "value_value"  
}  
}  
]  
}  
}  
}  
}  
]  
}  
},  
"sort": [  
{  
"score": {  
"order": "desc"  
}  
}  
]  
}

--  
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/fd33039a-da11-4b04-831e-d1217d1737a2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd33039a-da11-4b04-831e-d1217d1737a2%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:26am UTC](https://discuss.elastic.co/t/can-we-use-two-wildterm-in-a-wildcard-query/22705/2 "2017-07-06T00:26:20Z")

</div>


