You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Andrzej Bialecki (Updated) (JIRA)" <ji...@apache.org> on 2011/11/04 00:17:32 UTC
[jira] [Updated] (NUTCH-1197) Add statically configured field
values to solrindex-mapping.xml
[ https://issues.apache.org/jira/browse/NUTCH-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrzej Bialecki updated NUTCH-1197:
-------------------------------------
Attachment: NUTCH-1197.patch
Patch with the implementation. I added some javadocs, and a unit test for both the old and the new functionality.
> Add statically configured field values to solrindex-mapping.xml
> ---------------------------------------------------------------
>
> Key: NUTCH-1197
> URL: https://issues.apache.org/jira/browse/NUTCH-1197
> Project: Nutch
> Issue Type: Improvement
> Components: indexer
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Fix For: 1.4
>
> Attachments: NUTCH-1197.patch
>
>
> In some cases it's useful to be able to add to every document sent to Solr a set of predefined fields with static values. This could be implemented on the Solr side (with a custom UpdateRequestProcessor), but it may be less cumbersome to add them on the Nutch side.
> Example: let's say I have several Nutch configurations all indexing to the same Solr instance, and I want each of them to add its identifier as a field in all documents, e.g. "origin"="web_crawl_1", "origin"="file_crawl", "origin"="unlimited_crawl", etc...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira