-
1. Re: Teiid embedded with Solr (exception max boolean clauses)
shawkins Jul 17, 2017 12:22 PM (in response to hend.amin)You can set the translator property MaxInCriteriaSize to 1024. Since that looks like the general default for solr, the executionfactory should set that by default as well. Can you open an issue for that?
-
2. Re: Teiid embedded with Solr (exception max boolean clauses)
hend.amin Jul 18, 2017 8:44 AM (in response to shawkins)I have tried this but it is not working:
<model name="solr">
<source name="solr" translator-name="solr" connection-jndi-name="java:/solr-ds"/>
</model>
<translator name="solr" type="solr">
<property name="MaxInCriteriaSize" value="1024"/>
</translator>
i get cvc-complex-type.2.4.a: Invalid content was found starting with element 'model'. One of '{translator, data-role, entry}' is expected.
i refered to the example at: https://docs.jboss.org/author/display/TEIID/Translators
-
3. Re: Teiid embedded with Solr (exception max boolean clauses)
shawkins Jul 18, 2017 9:23 AM (in response to hend.amin)I can't say what you are seeing from just this snippet. Can you post the whole vdb.xml or check it against the xsd - https://raw.githubusercontent.com/teiid/teiid/master/client/src/main/resources/vdb-deployer.xsd
Also you'll want to use an override name that is different from the translator name.
-
4. Re: Teiid embedded with Solr (exception max boolean clauses)
hend.amin Jul 19, 2017 4:07 AM (in response to shawkins)Hi Stevens
I have corrected the syntax but now i get: an exception
org.teiid.deployers.VirtualDatabaseException: TEIID40106 VDB solr deployment failed. Override translators are not allowed in embedded mode.
i can not use the override value with teiid embedded , why ?
Thanks
Hend
-
5. Re: Teiid embedded with Solr (exception max boolean clauses)
rareddy Jul 19, 2017 7:26 AM (in response to hend.amin)Embedded mode the translators "instances" are actually defined in the code, thus if you are doing an override, there is no way to inject these properties into *your* instance of the translator, thus they are not supported. The easy fix, in the code where you are doing
ec = new SolrExecutionfactory();
embeddedTeiid.addTranslator("solr", ec);
add
ec.setMaxInCriteriaSize(1024);
That should be same as overriding in the VDB.xml
Ramesh..