# A little? help with proximity syntax needed

**URL:** <https://discuss.elastic.co/t/a-little-help-with-proximity-syntax-needed/169670>\
**Category:** Elasticsearch\
**Created:** [February 23, 2019, 2:44pm UTC](https://discuss.elastic.co/t/a-little-help-with-proximity-syntax-needed/169670 "2019-02-23T14:44:14Z")\
**Posts on this page:** 3\
**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:** [February 23, 2019, 2:44pm UTC](https://discuss.elastic.co/t/a-little-help-with-proximity-syntax-needed/169670/1 "2019-02-23T14:44:14Z")

</div>

I'm sure there is a simple solution but it escapes me - even after reading the documentation and attempting multiple approaches. What I would like to accomplish is to quality the search terms in the following query from _south-america_ to _south-america~3_ to ensure proximity  
Thx, Doug

{"size": 1000,"sort" : [{"randomnum" : {"order" : "desc"}},"\_score"],  
"query" : {  
"bool" : {  
"minimum\_should\_match": 1,  
"must" : [{"match": { "source": { "query": "","operator": "or"}}}],  
"should" : [  
{"match": { "description": { "query": "\<Navionics - south-america -\>", "fuzziness": "0","operator": "and"}}},  
{"match": { "url": { "query": "\<Navionics - south-america -\>", "fuzziness": "0","operator": "and"}}},  
{"match": { "description": { "query": "\<Navionics - caribbean -\>", "fuzziness": "1","operator": "and"}}},  
{"match": { "url": { "query": "\<Navionics - caribbean -\>", "fuzziness": "1","operator": "and"}}},  
{"match": {"description": { "query": "\<\*\>","fuzziness": "0","operator": "and"}}}  
]  
,"must\_not":[  
{"match":{"description": "6796666751"}},{"match":{"description": "9227198270"}}  
]  
}  
}  
}

---

<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:** [March 2, 2019, 1:15am UTC](https://discuss.elastic.co/t/a-little-help-with-proximity-syntax-needed/169670/2 "2019-03-02T01:15:46Z")

</div>

Still hoping for some assistance with this.....

---

<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:** [March 30, 2019, 1:15am UTC](https://discuss.elastic.co/t/a-little-help-with-proximity-syntax-needed/169670/3 "2019-03-30T01:15:51Z")

</div>

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