Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-137

TRECCollection cannot add properties from the document tags to the meta index at indexing time

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.5
    • Component/s: .indexing
    • Labels:
      None

      Description

      Modified the TRECCollection class such that additional document tags like the URL can be saved automatically into the meta index. Initial patch provided.

      Example: I want to index the title field and add the url to the meta index for the collection below:
      <doc>
      <docno>NYTMay2006-0</docno>
      <url>http://events.nytimes.com/2006/05/03/dining/reviews/03rest.html&lt;/url>
      <title>Forum: Dine Out</title>
      </doc>

      Set trec.properties:
      # Which fields do we want to pass to the indexer as properties (in addition to the docno)?
      TrecDocTags.propertytags=url
      # At the indexer which keys to we add to the Meta index?
      indexer.meta.forward.keys=docno,url
      # What are the lengths of those keys (e.g. the url will be much longer)?
      indexer.meta.forward.keylens=20,100

        Attachments

          Activity

            People

            • Assignee:
              richardm Richard McCreadie
              Reporter:
              richardm Richard McCreadie
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: