lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Swaraj Kumar <swaraj2...@gmail.com>
Subject Re: Solr -indexing from csv file having 28 cols taking lot of time ..plz help i m new to solr
Date Sat, 04 Apr 2015 08:37:09 GMT
I have used the following and it works very fast in DIH solr-5.0

<dataSource name="URL"  type="FileDataSource" />
<document name="map">
                        <entity
                        name="sites"

processor="org.apache.solr.handler.dataimport.LineEntityProcessor"
                        dataSource="URL"
                        url="/opt/solr/solrfiles/descriptions.csv"
                        rootEntity="false"
                        separator=","
                        transformer="RegexTransformer"
                        >
<field column="rawLine" regex="([^,]+),([^,]+),(.*)$"
groupNames="id,mydata," />
</entity>
<document>

You can try this for getting groupNames from regex.


Regards,


Swaraj Kumar
Senior Software Engineer I
MakeMyTrip.com
+91-9811774497

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