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

Allow DIH to create single geo-field from lat/lon metadata extracted via Tika

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Tika can extract latitude and longitude data from image (and other) files. It would be handy to allow the user to choose to have DIH populate a single geofield (LatLonType or RPT) from the two metadata values extracted by Tika.

      1. test_jpeg.jpg
        13 kB
        Tim Allison
      2. SOLR-7231.patch
        7 kB
        Tim Allison

        Activity

        Hide
        tallison@mitre.org Tim Allison added a comment - - edited

        Patch attached. Borrowed heavily from SpatialFilterTest.

        This patch sets the

        spatialMetadataField

        in the firstInit(), on the assumption that users will always want to index the geo point in the same field. Is this reasonable or should we move that choice to

        nextRow

        so that users can specify a different field for each doc?

        Show
        tallison@mitre.org Tim Allison added a comment - - edited Patch attached. Borrowed heavily from SpatialFilterTest. This patch sets the spatialMetadataField in the firstInit(), on the assumption that users will always want to index the geo point in the same field. Is this reasonable or should we move that choice to nextRow so that users can specify a different field for each doc?
        Hide
        tallison@mitre.org Tim Allison added a comment -

        Anyone have any interest in reviewing/committing this? Thank you!

        Show
        tallison@mitre.org Tim Allison added a comment - Anyone have any interest in reviewing/committing this? Thank you!
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1677001 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1677001 ]

        SOLR-7231: DIH-TikaEntityprocessor, create lat-lon field from Metadata

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1677001 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1677001 ] SOLR-7231 : DIH-TikaEntityprocessor, create lat-lon field from Metadata
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1677004 from Noble Paul in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1677004 ]

        SOLR-7231: DIH-TikaEntityprocessor, create lat-lon field from Metadata

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1677004 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1677004 ] SOLR-7231 : DIH-TikaEntityprocessor, create lat-lon field from Metadata
        Hide
        tallison@mitre.org Tim Allison added a comment -

        Thank you!

        Show
        tallison@mitre.org Tim Allison added a comment - Thank you!
        Hide
        anshumg Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        anshumg Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            noble.paul Noble Paul
            Reporter:
            tallison@mitre.org Tim Allison
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development