# Is there any way to limit Term Frequency but keep function of proximity matching?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-limit-term-frequency-but-keep-function-of-proximity-matching/23631>\
**Category:** Elasticsearch\
**Created:** [May 15, 2015, 7:34pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-limit-term-frequency-but-keep-function-of-proximity-matching/23631 "2015-05-15T19:34:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![go2jun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/go2jun/32/44837_2.png) [@go2jun](https://discuss.elastic.co/u/go2jun)\
**Post date:** [May 15, 2015, 7:34pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-limit-term-frequency-but-keep-function-of-proximity-matching/23631/1 "2015-05-15T19:34:39Z")

</div>

Is there any way to limit Term Frequency but keep function of proximity matching ?

for example:

#1 Sue ate the alligator Sue leave. Then Sue work.  
#2 Sue look the alligator.  
#3 Sue alligator  
#4 Sue never goes anywhere without her alligator-skin purse

if search sue alligator

We expect the order: #3 #2 #1 #4

also #1 and #2 have the same score

If this is possible, then what's the best way to do this?

Thanks in advance

Jun

---

<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, 12:13am UTC](https://discuss.elastic.co/t/is-there-any-way-to-limit-term-frequency-but-keep-function-of-proximity-matching/23631/2 "2017-07-06T00:13:48Z")

</div>


