# Proximity and close match in the same search?

**URL:** <https://discuss.elastic.co/t/proximity-and-close-match-in-the-same-search/314214>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 12, 2022, 5:50pm UTC](https://discuss.elastic.co/t/proximity-and-close-match-in-the-same-search/314214 "2022-09-12T17:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cas4](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@cas4](https://discuss.elastic.co/u/cas4)\
**Post date:** [September 12, 2022, 5:50pm UTC](https://discuss.elastic.co/t/proximity-and-close-match-in-the-same-search/314214/1 "2022-09-12T17:50:29Z")

</div>

I'm using c# and Nest to interact with our Elasticearch instance. I'm passing a query string to a query container using the following code:

```auto
return queryContainer
                        .Bool(bq => bq
                            .Must(m => m
                                .QueryString(qs => qs
                                    .Query(query)
                                )
                            )
                        );

```

I'm trying to figure out the query string syntax for performing a close match inside a proximity search. For example, if I want to do the search _"fox quick"~7_, it will find the document with the _quick brown fox_ text. If I want to include fuzziness or wildcards and search for _"fo\* quic\*"~7_ or _"fo~ quic~"~7_ nothing is returned. Is fuzziness or wildcards inside a proximity search not supported, or do I just have the syntax wrong. Any help would be greatly appreciated.

Thanks

---

<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:** [October 10, 2022, 5:51pm UTC](https://discuss.elastic.co/t/proximity-and-close-match-in-the-same-search/314214/2 "2022-10-10T17:51:11Z")

</div>

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