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

Steven Hawkins (JIRA) issues at jboss.org
Tue Jul 18 13:43:00 EDT 2017


     [ https://issues.jboss.org/browse/TEIID-4996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-4996.
-----------------------------------
    Resolution: Done


Added a default setting of 1024 to the translator.

> Teiid embedded with Solr (exception max boolean clauses)
> --------------------------------------------------------
>
>                 Key: TEIID-4996
>                 URL: https://issues.jboss.org/browse/TEIID-4996
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>            Reporter: Hend Amin
>            Assignee: Steven Hawkins
>             Fix For: 10.0, 9.3.2
>
>
> 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