# Proximity Search Syntax - Need Another Set of Eyes

**URL:** <https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622>\
**Category:** Elasticsearch\
**Created:** [July 15, 2019, 11:08pm UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622 "2019-07-15T23:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Douglas\_McQuilken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/douglas_mcquilken/32/44897_2.png) [@Douglas\_McQuilken](https://discuss.elastic.co/u/Douglas_McQuilken)\
**Post date:** [July 15, 2019, 11:08pm UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622/1 "2019-07-15T23:08:25Z")

</div>

```
This "should" be trivial but the solution escapes me.

The following query does what I need to do 
but I would like to improve precision using proximity. 
So 2-blade would become "2-blade"~2. 
This, would then be ANDed with the term "bronze".

My attempts to find the appropriate syntax have failed.
Thanks in advance for any assistance

{"size": 1000,"sort" : [{"randomnum" : {"order" : "desc"}},"_score"], "version": true,
   "query" : {
            "bool" : {
              "minimum_should_match": 1,
"must" : [{"match": { "source": { "query": "Clearance Forum", "operator": "or"}}}],
"should" : [
            {"match": { "description": { "query": "2-blade - - bronze", "fuzziness": "0","operator": "and"}}},
            {"match": { "url": { "query": "2-blade - - bronze", "fuzziness": "0","operator": "and"}}},
             {"match": {"description": { "query": "<*>","fuzziness": "0","operator": "and"}}}
              ]
         }
      }
}
```

---

<div class="post-metadata">

**Author:** ![gposcidonio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gposcidonio/32/50202_2.png) [@gposcidonio](https://discuss.elastic.co/u/gposcidonio)\
**Post date:** [July 16, 2019, 12:46am UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622/2 "2019-07-16T00:46:26Z")

</div>

I'm not qualified to help, but this is murder on the eyes. Could you format the code with triple backticks?

---

<div class="post-metadata">

**Author:** ![Douglas\_McQuilken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/douglas_mcquilken/32/44897_2.png) [@Douglas\_McQuilken](https://discuss.elastic.co/u/Douglas_McQuilken)\
**Post date:** [July 20, 2019, 1:08pm UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622/3 "2019-07-20T13:08:30Z")

</div>

Please let me know if any additional information / clarification or use-cases would be helpful. Thx

---

<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:** [August 17, 2019, 1:08pm UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622/4 "2019-08-17T13:08:35Z")

</div>

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