Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-209

GlobalIndex supports field data types such as Numeric to enable Range Query.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: s2core
    • Labels:
      None

      Description

      GlobalIndex supports field data types such as Numeric to enable Range Query.

      The provided GlobalIndex expects all stored fields as String values.

      For the above reason, even if the property type of the vertex/edge is Numeric, the following Range Query can not be performed.

      age: [50 TO 100]
      

       

      Change it to support it.

      The 'lucene' being implemented as a reference supports the field types listed below.

       {TextField}: {@link Reader} or {@link String} indexed for full-text search
       {StringField}: {@link String} indexed verbatim as a single token
       {IntPoint}: {@code int} indexed for exact/range queries.
       {LongPoint}: {@code long} indexed for exact/range queries.
       {FloatPoint}: {@code float} indexed for exact/range queries.
       {DoublePoint}: {@code double} indexed for exact/range queries.
       {SortedDocValuesField}: {@code byte[]} indexed column-wise for sorting/faceting
       {SortedSetDocValuesField}: {@code SortedSet<byte[]>} indexed column-wise for sorting/faceting
       {NumericDocValuesField}: {@code long} indexed column-wise for sorting/faceting
       {SortedNumericDocValuesField}: {@code SortedSet<long>} indexed column-wise for sorting/faceting
       {StoredField}: Stored-only value for retrieving in summary results
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daewon Daewon Jeong
                Reporter:
                daewon Daewon Jeong
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: