Solr
  1. Solr
  2. SOLR-7231

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial 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. SOLR-7231.patch
        7 kB
        Tim Allison
      2. test_jpeg.jpg
        13 kB
        Tim Allison

        Activity

        Hide
        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
        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
        Tim Allison added a comment -

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

        Show
        Tim Allison added a comment - Anyone have any interest in reviewing/committing this? Thank you!
        Hide
        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
        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
        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
        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
        Tim Allison added a comment -

        Thank you!

        Show
        Tim Allison added a comment - Thank you!
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

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

          People

          • Assignee:
            Noble Paul
            Reporter:
            Tim Allison
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development