Re: CSV entry as multiple documents

2015-02-17 Thread Alexandre Rafalovitch
What's your business use case? You don't need the split command, as you already have those values in separate fields. You could copyField them to a single multiValued field, but you would still have one document per original CSV line. Why do you need multiple documents out of one big CSV entry? R

Re: CSV entry as multiple documents

2015-02-17 Thread Henrique Oliveira
Yes, Alexandre is right about my question. To make it clear, a CSV that look like: t1,v1,v2,v2 2015-01-01T01:59:00Z,0.3,0.5,0.7 2015-01-01T02:00:00Z,0.4,0.5,0.8 would be the same of indexing t1,v 2015-01-01T01:59:00Z,0.3 2015-01-01T01:59:00Z,0.5 2015-01-01T01:59:00Z,0.7 2015-01-01T02:00:00Z,0.4 2

Re: CSV entry as multiple documents

2015-02-17 Thread Alexandre Rafalovitch
I think the question asked was a bit different. It was about having one row/document split into multiple with some fields replicated and some mapped. JSON (single-document format) has a split command which might be similar to what's being asked. CSV has a split command as well, but I think it is m

Re: CSV entry as multiple documents

2015-02-17 Thread Anshum Gupta
Hi Henrique, Solr supports posting a csv with multiple rows. Have a look at the documentation in the ref. guide here: https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-CSVFormattedIndexUpdates On Tue, Feb 17, 2015 at 2:44 PM, Henr