# Span\_near with a wildcard not finding an index

**URL:** <https://discuss.elastic.co/t/span-near-with-a-wildcard-not-finding-an-index/258204>\
**Category:** Elasticsearch\
**Created:** [December 10, 2020, 12:54am UTC](https://discuss.elastic.co/t/span-near-with-a-wildcard-not-finding-an-index/258204 "2020-12-10T00:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rvs](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Rvs](https://discuss.elastic.co/u/Rvs)\
**Post date:** [December 10, 2020, 12:54am UTC](https://discuss.elastic.co/t/span-near-with-a-wildcard-not-finding-an-index/258204/1 "2020-12-10T00:54:48Z")

</div>

I am trying to search for a phrase where the one of the term i need to search using a wildcard.

This is the index  
`{ "id": 2, "name": "Some Other Pizzaeria"}`

This is the query

```auto
{
	"query": {
        "span_near" : {
        	"clauses" : [
     			{"span_term" : { "name" : "Some" } },
                {"span_term" : { "name" : "Other" } },
                { "span_multi" : { "match": { "wildcard": { "name" : "Pizza*" } } } `}
		     ],
             "slop" : 0,
             "in_order" : true
         }
     }
}

```

This doesn't seem to be working.  
Any help is appreciated.

Thank you

---

<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:** [January 7, 2021, 12:54am UTC](https://discuss.elastic.co/t/span-near-with-a-wildcard-not-finding-an-index/258204/2 "2021-01-07T00:54:49Z")

</div>

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