title: ElasticSearch bool query with slop, how to achieve?
body: <p>I have a query where I need to find N number of words AND the document must also match a regular expression string.  I have that working but I also have the requirement that the terms must be within 3 words of each other, in Elastic syntax slop:3.  The problem is slop isn't allowed on a bool query.  </p>
  
  <pre><code>{
    "from": 0,
    "size": 100,
    "explain": true,
    "_source": {
      "includes": [
        "*"
      ],
      "excludes": [
        "doctext"
      ]
    },
    "query": {
      "bool": {
        "must": [
          {
            "match": {
              "doctext": {
                "query": "value1 value2"
              }
            }
          },
          {
            "regexp": {
              "doctext": {
                "value": "[0-9]{3}"
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>Does anyone know another way to achieve the same result?</p>