Sorry for not providing enough details initially. You're right, it's
difficult for me to share the real code but let me try and give you an
example.

<dataConfig>
        
        <xi:include href="mydatasource.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
                
        

        <document name="colours">

                <entity name="colour" dataSource="colours-ds" stream="true"
                        query="SELECT COLOURS FROM CLRS"
transformer="script:myWorkingTransformer">
                                <field column="COLOUR" name="colour" />
                </entity>

        </document>
                        
</dataConfig>

My DIH is simply converting colours to use an uppercase first character
(it's just an example..). 

When using the 'myWorkingTransformer' function, the values are indexed
correctly as expected e.g. 'Orange', 'Red', 'Yellow' etc. 

Using the 'myBrokenTransformer' the import completes successfully but the
values are stored as 'orange', 'red', 'yellow' etc.

I hope that is clearer.

Thanks,
paul



--
View this message in context: 
http://lucene.472066.n3.nabble.com/JavaScript-transform-switch-statement-during-Data-Import-tp4056340p4056648.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to