title: Lucene how can i make slop in collocation
body: <p>I have a text:</p>
  <pre><code>TextWord[0]: word0
  TextWord[1]: word1
  TextWord[2]: word2
  TextWord[3]: word111
  TextWord[4]: Word
  TextWord[5]: Kite
  TextWord[6]: word5
  TextWord[7]: World
  TextWord[8]: word6
  TextWord[9]: anti
  TextWord[10]: terrorist
  TextWord[11]: operation
  TextWord[12]: word1212
  TextWord[13]: word1231313
  </code></pre>
  <p>And i want to find &quot;anti terrorist&quot; with slop=0 and &quot;operation&quot; with ones slop=1, i mean that something like that:</p>
  <pre><code>query = (&quot; \&quot; \&quot;anti (slop = 0) terrorist\&quot; (slop=1) operation \&quot;~1)
  </code></pre>
  <p>When i use (or something like that):</p>
  <pre><code>Query query = queryParser.parse(&quot;\&quot;\&quot;anti terrorist\&quot;~0 operation\&quot;~1&quot;);
  </code></pre>
  <p>I have result, my query is found, when:</p>
  <pre><code>TextWord[9]: anti
  TextWord[10]: terrorist
  TextWord[11]: operation
  </code></pre>
  <p>But when text:</p>
  <pre><code>TextWord[9]: anti
  TextWord[10]: badWORD1
  TextWord[11]: badWORD2
  TextWord[12]: terrorist
  TextWord[13]: operation
  </code></pre>
  <p>My query found too, but i don't want it, because that's my start rules.
  I don't know how can i create slop = 0 in str = &quot;anti terrorist&quot; and make slop = 1 for
  str &quot;anti terrorist&quot; (slop = 1) operation.</p>
  <hr />
  <p>How can i make this?</p>