i'm kinda new to Solr and i'm trying to index around 1M tweets in solr in order to be able to search them afterwards
i have those tweets in a MYSQL database i know how to index separate files in Solr , but actually i can't divide the tweets into 1M files
so i'm asking if there's a way to index sql table in solr row by row
what i've tried to far :
You are on the right track, using the Data Import Handler (DIH) is a good place to start. Did you see the link to the DIH Quick Start on the DataImportHandler wiki page. For your given use case this should be pretty close to what you need.
In order to run the DIH examples that come with solr in the /example/example-DIH folder you will need to start Solr using the last example listed below in the excerpt from the Readme.txt file:
By default, start.jar starts Solr in Jetty using the default solr home directory of "./solr/" -- To run other example configurations, you can speciy the solr.solr.home system property when starting jetty...
java -Dsolr.solr.home=multicore -jar start.jar
java -Dsolr.solr.home=example-DIH -jar start.jar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.