You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "Daewon Jeong (JIRA)" <ji...@apache.org> on 2018/04/20 06:12:00 UTC

[jira] [Created] (S2GRAPH-209) GlobalIndex supports field data types such as Numeric to enable Range Query.

Daewon Jeong created S2GRAPH-209:
------------------------------------

             Summary: GlobalIndex supports field data types such as Numeric to enable Range Query.
                 Key: S2GRAPH-209
                 URL: https://issues.apache.org/jira/browse/S2GRAPH-209
             Project: S2Graph
          Issue Type: Improvement
          Components: s2core
            Reporter: Daewon Jeong


h1. 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.
{noformat}
age: [50 TO 100]
{noformat}
 

Change it to support it.

The 'lucene' being implemented as a reference supports the field types listed below.
{noformat}
 {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
 {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)