lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenf_nc <>
Subject Re: DIH and multivariable fields problems
Date Tue, 10 Aug 2010 18:02:14 GMT

I do multivalue dynamic fields, but only if I use a script transform. Put
this after your <dataSource...>
      function pivotDynamicData(row) { 
        var name = row.get('CORE_DESC_TERM');
	row.put(name+ '_s');

        return row; 

then make your entity query look like this (add the transformer line):

<entity name="terms" query="select distinct CORE_DESC_TERM from metadata
where item_id=${item.DIVID_PK}"> 
  <entity name="metadata" 
          query="select * from metadata where item_id=${item.DIVID_PK} AND
          transformer="script:pivotData" /> 

Anyway, something similar to this works for me. I haven't tested these
actual values, but something close should work.
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message