# Proximity search - percentage - more than one result

**URL:** https://discuss.elastic.co/t/proximity-search-percentage-more-than-one-result/15821
**Category:** Elasticsearch
**Created:** [February 15, 2014, 1:28am UTC](https://discuss.elastic.co/t/proximity-search-percentage-more-than-one-result/15821 "2014-02-15T01:28:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![janek\_sendrowski](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@janek\_sendrowski](https://discuss.elastic.co/u/janek_sendrowski)
#### Post date: [February 15, 2014, 1:28am UTC](https://discuss.elastic.co/t/proximity-search-percentage-more-than-one-result/15821/1 "2014-02-15T01:28:13Z")

</div>

Hi,

Is there the possibility to specify a percentage value, when performing the  
proximity search.

LIKE: "this is an example"~0.5 (This doesn't work)

Furthermore I like to know if there is a way to get the N best results, not  
only the best.

Thank you for your answers!

Janek Sendrowski

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e994c666-ee40-4643-963e-fd6de071f08b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e994c666-ee40-4643-963e-fd6de071f08b%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 20, 2014, 9:00am UTC](https://discuss.elastic.co/t/proximity-search-percentage-more-than-one-result/15821/2 "2014-02-20T09:00:01Z")

</div>

Hey,

the main question is, what does proximity mean for you? Could be several  
things

- Words should be similar to the ones specified (including typos)
- Words should be exact, but the occurance of each words should be near to  
each other
- The whole phrase should be similar
- etc...

You might want to take a look at the fuzzy queries, at phonetic analyzers  
and, if you want proximity search like described in

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

then you need to specify a number greather than one in order to define the  
distance.

hope this helps a bit

--Alex

On Sat, Feb 15, 2014 at 2:28 AM, janek sendrowski  
[j.sendrowski18@gmail.com](mailto:j.sendrowski18@gmail.com)wrote:

> Hi,
> 
> Is there the possibility to specify a percentage value, when performing  
> the proximity search.
> 
> LIKE: "this is an example"~0.5 (This doesn't work)
> 
> Furthermore I like to know if there is a way to get the N best results,  
> not only the best.
> 
> Thank you for your answers!
> 
> Janek Sendrowski
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e994c666-ee40-4643-963e-fd6de071f08b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e994c666-ee40-4643-963e-fd6de071f08b%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8o17qCOgs\_or2x1fUKXwHb%3DXzU90Puo\_kPMWtbXycyaQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8o17qCOgs_or2x1fUKXwHb%3DXzU90Puo_kPMWtbXycyaQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 1:48am UTC](https://discuss.elastic.co/t/proximity-search-percentage-more-than-one-result/15821/3 "2017-07-06T01:48:48Z")

</div>


