Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2584

Add a parameter in UIMAUpdateRequestProcessor to avoid duplicated values on insert

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.1, 3.3, 4.0-ALPHA
    • 3.4, 4.0-ALPHA
    • None

    Description

      Hi folks,

      I think that UIMAUpdateRequestProcessor should have a parameter to avoid duplicate values on the updated field.

      A typical use case is:

      If you are using DictionaryAnnotator and there is a term that matches more than once it will be added two times in the mapped field. I think that we should add a parameter to avoid inserting duplicates as we are not preserving information on the position of the annotation.

      What do you think about it? I've already implemented this for branch 3x I'm writing some tests and I will submit a patch.

      Regards

      Attachments

        1. SOLR-2584.patch
          11 kB
          Koji Sekiguchi
        2. SOLR-2584.patch
          10 kB
          Elmer Garduno
        3. SOLR-2584.patch
          9 kB
          Elmer Garduno

        Activity

          People

            koji Koji Sekiguchi
            elmer.garduno Elmer Garduno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: