Lucene - Core
  1. Lucene - Core
  2. LUCENE-5648

Index/search multi-valued time durations

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, Trunk
    • Component/s: modules/spatial
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you need to index a date/time duration, then the way to do that is to have a pair of date fields; one for the start and one for the end – pretty straight-forward. But if you need to index a variable number of durations per document, then the options aren't pretty, ranging from denormalization, to joins, to using Lucene spatial with 2D as described here. Ideally it would be easier to index durations, and work in a more optimal way.

      This issue implements the aforementioned feature using Lucene-spatial with a new single-dimensional SpatialPrefixTree implementation. Unlike the other two SPT implementations, it's not based on floating point numbers. It will have a Date based customization that indexes levels at meaningful quantities like seconds, minutes, hours, etc. The point of that alignment is to make it faster to query across meaningful ranges (i.e. [2000 TO 2014]) and to enable a follow-on issue to facet on the data in a really fast way.

      I'll expect to have a working patch up this week.

      1. LUCENE-5648.patch
        67 kB
        David Smiley
      2. LUCENE-5648.patch
        63 kB
        David Smiley
      3. LUCENE-5648.patch
        67 kB
        David Smiley
      4. LUCENE-5648.patch
        69 kB
        David Smiley

        Issue Links

          Activity

          Anshum Gupta made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Uwe Schindler made changes -
          Fix Version/s 5.0 [ 12327844 ]
          David Smiley made changes -
          Link This issue is required by LUCENE-5735 [ LUCENE-5735 ]
          David Smiley made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0 [ 12321663 ]
          Resolution Fixed [ 1 ]
          David Smiley made changes -
          Attachment LUCENE-5648.patch [ 12646103 ]
          David Smiley made changes -
          Link This issue is required by SOLR-6103 [ SOLR-6103 ]
          David Smiley made changes -
          Attachment LUCENE-5648.patch [ 12645947 ]
          David Smiley made changes -
          Attachment LUCENE-5648.patch [ 12644711 ]
          David Smiley made changes -
          Field Original Value New Value
          Attachment LUCENE-5648.patch [ 12644509 ]
          David Smiley created issue -

            People

            • Assignee:
              David Smiley
              Reporter:
              David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development