[teiid-issues] [JBoss JIRA] (TEIID-4996) Teiid embedded with Solr (exception max boolean clauses)

Hend Amin (JIRA) issues at jboss.org
Tue Jul 18 05:13:00 EDT 2017


Hend Amin created TEIID-4996:
--------------------------------

             Summary: Teiid embedded with Solr (exception max boolean clauses)
                 Key: TEIID-4996
                 URL: https://issues.jboss.org/browse/TEIID-4996
             Project: Teiid
          Issue Type: Bug
            Reporter: Hend Amin
            Assignee: Steven Hawkins


I am using Teiid embedded with sorl.
i have a query like:
select field1 from solrCore where field2 in (v1,v2,v3 ..... v2000).
I get an expcetion
Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:127)
at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:117)
at org.apache.solr.parser.SolrQueryParserBase.getBooleanQuery(SolrQueryParserBase.java:514)
at org.apache.solr.parser.SolrQueryParserBase.getBooleanQuery(SolrQueryParserBase.java:490)
 
If i am querying solr directly, i can work around the restriction of 1024 Boolean queries by using
field2:(v1 v2 v3 ... v1000) OR field2:(v1001 v1002 v1003 ... v2000) but with Teiid i can not do this and i get the exception.
 
if i split the query field2 in (v1,v2,v3 ..... v1000) OR field2 in (v1001,v1002,v1003 ..... v2000) teiid groups this in one statement.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list