rs1050  
                
                  
                    December 7, 2010,  1:38am
                   
                  1 
               
             
            
              I am getting this exception
Dec 06 20:35:56,30 [31223651@qtp-32715418-11] ERROR  org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [dfs], total failure; shardFailures {null: RemoteTransportException[[Multiple Man][inet[/192.168.1.108:9300]][search/phase/dfs]]; nested: ArrayIndexOutOfBoundsException[216]; }{null: RemoteTransportException[[Multiple Man][inet[/192.168.1.108:9300]][search/phase/dfs]]; nested: ArrayIndexOutOfBoundsException[216]; }{null: RemoteTransportException[[Multiple Man][inet[/192.168.1.108:9300]][search/phase/dfs]]; nested: ArrayIndexOutOfBoundsException[216]; }{null: RemoteTransportException[[Multiple Man][inet[/192.168.1.108:9300]][search/phase/dfs]]; nested: ArrayIndexOutOfBoundsException[216]; }{null: RemoteTransportException[[Multiple Man][inet[/192.168.1.108:9300]][search/phase/dfs]]; nested: ArrayIndexOutOfBoundsException[216]; }
when using simple Or filter.
Thank you.
             
            
              
            
           
          
            
              
                rs1050  
              
                  
                    December 7, 2010,  2:41am
                   
                  2 
               
             
            
              FYI I think this happens when one of the fields (both numeric) on which I had 'or' filter had null as value.
Does not hurt me anymore, but please change exception to save time for others.
Thank you.
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    December 7, 2010,  8:24pm
                   
                  3 
               
             
            
              Can you gist a recreation?
I am getting this exception
Dec 06 20:35:56,30 [31223651@qtp-32715418-11] ERROR
when using simple Or filter.
Thank you.
--http://elasticsearch-users.115913.n3.nabble.com/Problem-with-Or-filter-tp2031072p2031072.html Nabble.com .
 
             
            
              
            
           
          
            
              
                rs1050  
              
                  
                    December 7, 2010,  9:56pm
                   
                  4 
               
             
            
              Here is the code I had:
    NumericRangeFilterBuilder hourlyFilter = null;
    NumericRangeFilterBuilder totalFilter = null;
        hourlyFilter = numericRangeFilter(FIELD_B).gte(123)
        totalFilter = numericRangeFilter(FIELD_A).gte(432)
        filterBuilder.add(
                orFilter(
                        totalFilter,
                        hourlyFilter
                )
        );
When I was indexing the object, one of the values for FIELD_A or FIELD_B was null and then I got the exception. When I changed indexing piece to put zero if the field is null everything works.
I am using 0.13.1
Thank you.
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    December 7, 2010,  9:58pm
                   
                  5 
               
             
            
              Can you gist a curl recreation? One that index some data, and then issue the mentioned queries?
Here is the code I had:
NumericRangeFilterBuilder hourlyFilter = null;
hourlyFilter = numericRangeFilter(FIELD_B).gte(123)
filterBuilder.add(
When I was indexing the object, one of the values for FIELD_A or FIELD_B was
I am using 0.13.1
Thank you. 
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Problem-with-Or-filter-tp2031072p2036478.html Nabble.com .
 
             
            
              
            
           
          
            
              
                rs1050  
              
                  
                    December 7, 2010, 11:29pm
                   
                  6 
               
             
            
              The index was created like this:
curl -XPUT 'http://localhost:9200/jobs '
The data was put via grails via java api, here is code I used:
    def builder = jsonBuilder().startObject();
                    .field(FIELD_A, job.maxHourlyComp)
                    .field(FIELD_B, job.maxTotalComp)
when I changed the code to this it works correctly
    def builder = jsonBuilder().startObject();
                    .field(FIELD_A, job.maxHourlyComp ?: AppConstants.ZERO)
                    .field(FIELD_B, job.maxTotalComp ?: AppConstants.ZERO)
where  constant is defined as this:
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    December 7, 2010, 11:31pm
                   
                  7 
               
             
            
              Can you send a curl recreation? When curl requests to index the data, and then the curl request that does the search? It will simplify things on my end.
The index was created like this:
curl -XPUT 'http://localhost:9200/jobs '
The data was put via grails via java api, here is code I used:
def builder = jsonBuilder().startObject();
when I changed the code to this it works correctly
def builder = jsonBuilder().startObject();
where constant is defined as this:
--http://elasticsearch-users.115913.n3.nabble.com/Problem-with-Or-filter-tp2031072p2036979.html Nabble.com .
 
             
            
              
            
           
          
            
              
                rs1050  
              
                  
                    December 7, 2010, 11:58pm
                   
                  8 
               
             
            
              I am having problems running the simple search via curl for some reason (0.13.1)
curl -XPUT 'http://localhost:9200/rs1050/ 'http://localhost:9200/rs1050/jobs/1 ' -d 'http://localhost:9200/rs1050/jobs/_search ' -d '
and I am getting this exception
org.elasticsearch.search.SearchParseException: [rs1050][4]: from[-1],size[-1]: Parse Failure [Failed to parse [
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    December 8, 2010,  6:06am
                   
                  9 
               
             
            
              You need to wrap it in another query :), since the search body can have many more parameters, it needs to know what the main query is. Here is how it should look like: gist:732957 · GitHub .
I am having problems running the simple search via curl for some reason
curl -XPUT 'http://localhost:9200/rs1050/ 'http://localhost:9200/rs1050/jobs/1 ' -d 'http://localhost:9200/rs1050/jobs/_search ' -d '
and I am getting this exception
org.elasticsearch.search.SearchParseException: [rs1050][4]: 
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Problem-with-Or-filter-tp2031072p2037073.html Nabble.com .