You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2011/08/02 15:59:27 UTC

[jira] [Commented] (SOLR-1032) CSV loader to support literal field values

    [ https://issues.apache.org/jira/browse/SOLR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076211#comment-13076211 ] 

Erik Hatcher commented on SOLR-1032:
------------------------------------

Simon - thanks for the effort on this!  I have taken a look and updated the patch with a test case and a change to use _literal.field_name=value_ convention.  I think for the sake of this feature, it's best to stick with the established Solr Cell convention.  Perhaps in another issue we can take up refactoring parameter naming for this capability.

Thoughts?  Objections?   I'll commit this to trunk once I hear Simon's signoff.

> 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, 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org