lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Kuć <r....@solr.pl>
Subject Re: Indexing CSV files with filenames
Date Fri, 07 Sep 2012 16:35:40 GMT
Hello!

You can just pass the name of the file to the 'literal' parameter. For
example adding

literal.filename=my_file.csv

would set the 'filename' field of your document with the value of
'my_file.csv'.

-- 
Regards,
 Rafał Kuć
 Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

> Thx for the quick answer.

> Can you help a little more? I don't really got the concept of literal.

> How can I set a field with the source absolute path?

> I mean how can I find out the parameter names?

> An example will be really help full.



> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Indexing-CSV-files-with-filenames-tp4006165p4006177.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message