lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lixo Aqui <lixoa...@netcabo.pt>
Subject Transformer also affects the column value when used in a subentity query?
Date Tue, 05 Nov 2013 18:56:57 GMT
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>


 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message