Skip to content
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

Confusing exception when regexp query used on numeric field #14782

Closed
clintongormley opened this issue Nov 16, 2015 · 1 comment
Closed

Confusing exception when regexp query used on numeric field #14782

clintongormley opened this issue Nov 16, 2015 · 1 comment
Labels
>bug good first issue low hanging fruit :Search/Search Search-related issues that do not fall into other categories

Comments

@clintongormley
Copy link

PUT t/t/1
{
  "num": 34
}

GET /_search
{
  "query": {
    "regexp": {
      "num": {
        "value": "34"
      }
    }
  }
}

returns:

"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "expected '"' at position 11"
}
],

@camilojd
Copy link
Contributor

Hi, I created a fix for this in the referenced PR, that I believe does the right thing.

All tests pass.

@nik9000 nik9000 removed the help wanted adoptme label Nov 21, 2015
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Query DSL labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug good first issue low hanging fruit :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

No branches or pull requests

3 participants