[ 
https://issues.apache.org/jira/browse/SOLR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Rosenthal updated SOLR-1032:
----------------------------------

    Attachment: SOLR-1032.patch

here's a first cut at a patch. The syntax for the literal field is 
....&f.<fieldname>.literal=<literalvalue>

The supplied literal value is not processed in any way (e.g. split into multi 
values, quotes removed)

No tests yet.

> CSV loader to support literal field values
> ------------------------------------------
>
>                 Key: SOLR-1032
>                 URL: https://issues.apache.org/jira/browse/SOLR-1032
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.3
>            Reporter: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-1032.patch
>
>
> It would be very handy if the CSV loader could handle a literal field 
> mapping, like the extracting request handler does.  For example, in a 
> scenario where you have multiple datasources (some data from a DB, some from 
> file crawls, and some from CSV) it is nice to add a field to every document 
> that specifies the data source.  This is easily done with DIH with a template 
> transformer, and Solr Cell with ext.literal.datasource=, but impossible 
> currently with CSV.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to