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

NPE in bool filter #4685

Closed
skingreek opened this issue Jan 10, 2014 · 2 comments
Closed

NPE in bool filter #4685

skingreek opened this issue Jan 10, 2014 · 2 comments

Comments

@skingreek
Copy link

typo was cause of NPE
see my comment of commit
8e02918

@ghost ghost assigned martijnvg Jan 10, 2014
@martijnvg
Copy link
Member

@skingreek Thanks bringen this up. Just curious: what filter clauses where you using in the bool filter when the NPE occurred?

martijnvg added a commit that referenced this issue Jan 10, 2014
@skingreek
Copy link
Author

i use filed query. internally elastic call org.apache.lucene.search.TermQuery.scorer method.
strange but on other index this query was succesful. i suppose that NPE occured if at least one segment of lucen index not content requested term

example of failed query:

{

   "from":"0",
   "query":{
      "filtered":{
         "filter":{
            "bool":{
               "should":[
                  {
                     "query":{
                        "field":{
                           "type":"test"
                        }
                     }
                  }
               ],
               "must":[
                  {
                     "match_all":{

                     }
                  }
               ]
            }
         }
      }
   },
   "size":21
}

brusic pushed a commit to brusic/elasticsearch that referenced this issue Jan 19, 2014
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants