Re: Indexing CSV files with filenames

2017-09-22 Thread sophia250
how did you find the file name? When i do posting, i use wildcard *.csv. Your
way seems work only when you are posting by each



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Indexing CSV files with filenames

2012-09-07 Thread edvicif
Hi!

I've have a set of CSV files. I wanted to index them by certain columns. But
I also want to store the filename, where they got indexed from.

The reason is, that the queries I want to run is to identify files.

David



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


Re: Indexing CSV files with filenames

2012-09-07 Thread Rafał Kuć
Hello!

In Solr 4.0 you will have the ability to add arbitrary field along
with all documents from a single file - 
http://wiki.apache.org/solr/UpdateCSV#literal

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

 Hi!

 I've have a set of CSV files. I wanted to index them by certain columns. But
 I also want to store the filename, where they got indexed from.

 The reason is, that the queries I want to run is to identify files.

 David



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



Re: Indexing CSV files with filenames

2012-09-07 Thread edvicif
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.


Re: Indexing CSV files with filenames

2012-09-07 Thread Rafał Kuć
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.



Re: Indexing CSV files with filenames

2012-09-07 Thread edvicif
My problem is more like the left hand side of the equatation.

Is it ${f.name} or something?
On Sep 7, 2012 5:36 PM, Rafał Kuć-3 [via Lucene] 
ml-node+s472066n4006179...@n3.nabble.com wrote:

 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.



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/Indexing-CSV-files-with-filenames-tp4006165p4006179.html
  To unsubscribe from Indexing CSV files with filenames, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4006165code=ZWR2aWNpZkBnbWFpbC5jb218NDAwNjE2NXwtMTk5Mjg2MTM3OQ==
 .
 NAMLhttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





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