# How to emulate "NEAR" search from MSSQL (word X NEAR word Y)

**URL:** <https://discuss.elastic.co/t/how-to-emulate-near-search-from-mssql-word-x-near-word-y/75082>\
**Category:** Elasticsearch\
**Created:** [February 14, 2017, 5:24pm UTC](https://discuss.elastic.co/t/how-to-emulate-near-search-from-mssql-word-x-near-word-y/75082 "2017-02-14T17:24:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakanw](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@hakanw](https://discuss.elastic.co/u/hakanw)\
**Post date:** [February 14, 2017, 5:24pm UTC](https://discuss.elastic.co/t/how-to-emulate-near-search-from-mssql-word-x-near-word-y/75082/1 "2017-02-14T17:24:30Z")

</div>

Hi lovely Elasticsearch community,

I've been struggling with this for a while. I would like to be able to combine asterisk search with "fuzziness" on a world level. Let me give you an example:

I wanna search for when: comput\* is mentioned NEAR/4 Mich\* for example.

So it would match both: "Computer is owned by Michelle" and "Computing with Michael".

How can I achieve this?

I've found SPAN NEAR, but that seems to be for terms and things like "computing michelle"~4 cannot be used because I cannot use the fuzzy asterisk search inside that quote.

Please help!

All the best,  
Håkan W

---

<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 14, 2017, 5:24pm UTC](https://discuss.elastic.co/t/how-to-emulate-near-search-from-mssql-word-x-near-word-y/75082/2 "2017-03-14T17:24:40Z")

</div>

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