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/23 09:49:00 UTC
[jira] [Commented] (S2GRAPH-209) GlobalIndex supports field data
types such as Numeric to enable Range Query.
[ https://issues.apache.org/jira/browse/S2GRAPH-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16447859#comment-16447859 ]
Daewon Jeong commented on S2GRAPH-209:
--------------------------------------
The 'lucene' index provider is very difficult to implement range query, so it is left as a later implementation.
The implementation of the ragne query implementation in the 'elasticsearch' index provider is very easy and works well.
I will adjust the scope of the issue by applying 'elastic search' implementation and VertexQueryParam.
> 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
> Assignee: Daewon Jeong
> Priority: Minor
>
> 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)