You may write a client using solrj and loop through all files in that folder.
Something like,
ContentStreamUpdateRequest up = new
ContentStreamUpdateRequest("/update/extract");
up.addFile(new File(fileLocation), null);
ModifiableSolrParams p = new ModifiableSolrParams();
p.add("literal.id", str);
The new 4.0 branch has a greatly improved post tool that handles directories
for SolrCell. And it will generate the default IDs for you.
See:
http://wiki.apache.org/solr/ExtractingRequestHandler#SimplePostTool_.28post.jar.29
-- Jack Krupansky
-Original Message-
From: troya
Sent: Mond
On 14 August 2012 09:02, troya wrote:
> HI All,
>
> I have thousands file on some folder which i want to index using solr.
> Firstly my file only 9 until 20 file, so i upload them manually into solr
> using curl.
>
> But Now, my file is thousands file, how i can index it using solr ? should i
> up