Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1197

Add statically configured field values to solrindex-mapping.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • indexer
    • None

    Description

      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...

      Attachments

        1. NUTCH-1197.patch
          9 kB
          Andrzej Bialecki

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ab Andrzej Bialecki
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: