You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lixo Aqui <li...@netcabo.pt> on 2013/11/05 19:56:57 UTC
Transformer also affects the column value when used in a subentity
query?
When you use a Transformer on a entity query does it also transform the value if it's needed in a subentity query?
Considering the next example, the value ${outer.id} that is used in the "inner" entity is affectd by the ClobTransformer?(ignore the fact that it doesn't make sense to use a ClobTransformer in this case... This is just an example :) )
<dataConfig> <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/dbname" user="user-name" password="password"/> <document> <entity name="outer" query="select id,name,desc from mytable" transformer="ClobTransformer"> <field column="id" name="solr_id" clob="true" /> <field column="name" name="solr_name"/> <field column="desc" name="solr_desc"/> <entity name="inner" query="select details from another_table where id ='${outer.id}'"> <field column="details" name="solr_details"/> </entity> </entity> </document></dataConfig>