# Maximum number of slops for span\_near query

**URL:** <https://discuss.elastic.co/t/maximum-number-of-slops-for-span-near-query/155838>\
**Category:** Elasticsearch\
**Created:** [November 8, 2018, 8:22am UTC](https://discuss.elastic.co/t/maximum-number-of-slops-for-span-near-query/155838 "2018-11-08T08:22:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![junkoshimane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junkoshimane/32/36594_2.png) [@junkoshimane](https://discuss.elastic.co/u/junkoshimane)\
**Post date:** [November 8, 2018, 8:22am UTC](https://discuss.elastic.co/t/maximum-number-of-slops-for-span-near-query/155838/1 "2018-11-08T08:22:42Z")

</div>

Hi all,

Is there the maximum number of slops for span\_near query?  
If yes, is it Integer.MAX\_VALUE = 2147483647?

When I tried to find it on GitHub by searching words "slop max", I guessed that the following line was applicable. But I don't know it's correct.

[https://github.com/elastic/elasticsearch/blob/237650e9c054149fd08213b38a81a3666c1868e5/server/src/main/java/org/elasticsearch/common/lucene/search/MultiPhrasePrefixQuery.java#L48](https://github.com/elastic/elasticsearch/blob/237650e9c054149fd08213b38a81a3666c1868e5/server/src/main/java/org/elasticsearch/common/lucene/search/MultiPhrasePrefixQuery.java#L48)

---

<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:** [December 6, 2018, 8:33am UTC](https://discuss.elastic.co/t/maximum-number-of-slops-for-span-near-query/155838/2 "2018-12-06T08:33:45Z")

</div>

Closed on December 6, 2018, 8:33am UTC

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