[ 
https://issues.apache.org/jira/browse/SOLR-4692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13626222#comment-13626222
 ] 

Bill Bell commented on SOLR-4692:
---------------------------------

In DIH just add:

transformer="hg.JSONTransformer" and add the <field>

 <field column="office_xml" json="true" />

This takes office_xml and makes office_xml_json. In schema.xml I added a 
dynamic field *_json as String.

The WAR file for SOLR 4 does not have to be modified. But the JSONTransform.jar 
needs to be in dist\. And xml.jar needs to be in jetty\lib\ext.

<dynamicField name="*_json"  type="string"    indexed="false"  stored="true"/>

The java code is attached.


                
> JSON Field transformer for DIH
> ------------------------------
>
>                 Key: SOLR-4692
>                 URL: https://issues.apache.org/jira/browse/SOLR-4692
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
>         Attachments: JSONTransformer.java
>
>
> This works in conjunction with SOLR-4685.
> Takes an XML field from SQL / manually and adds it as a JSON field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to