New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match_phrase_prefix no longer supports slop #5437

Closed
clintongormley opened this Issue Mar 14, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@clintongormley
Member

clintongormley commented Mar 14, 2014

PUT /my_index/my_type/1
{
  "brand": "Johnnie Walker Black Label"
}

GET /my_index/_search
{
  "query": {
    "match": {
      "brand": {
        "type": "phrase_prefix", 
        "query": "Johnnie la",
        "slop": 10
      }
    }
  }
}
@clintongormley

This comment has been minimized.

Show comment
Hide comment
@clintongormley

clintongormley Mar 14, 2014

Member

@s1monw I ran a git bisect on this and it was #5005 that broke this.

Member

clintongormley commented Mar 14, 2014

@s1monw I ran a git bisect on this and it was #5005 that broke this.

@s1monw s1monw added the v2.0.0 label Mar 14, 2014

@s1monw s1monw closed this in b708ab3 Mar 14, 2014

s1monw added a commit that referenced this issue Mar 14, 2014

Add slop to prefix phrase query after parsing query string
This fixes a regression introduced by #5005 where the query slop
was simply ignored when a `match_phrase_prefix` type was set.

Closes #5437
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment