File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,6 @@ func (n *GeoShapeField) AnalyzedTokenFrequencies() index.TokenFrequencies {
8787func (n * GeoShapeField ) Analyze () {
8888 // compute the bytes representation for the coordinates
8989 tokens := make (analysis.TokenStream , 0 )
90- tokens = append (tokens , & analysis.Token {
91- Start : 0 ,
92- End : len (n .encodedValue ),
93- Term : n .encodedValue ,
94- Position : 1 ,
95- Type : analysis .AlphaNumeric ,
96- })
9790
9891 rti := geo .GetSpatialAnalyzerPlugin ("s2" )
9992 terms := rti .GetIndexTokens (n .shape )
@@ -126,6 +119,10 @@ func (n *GeoShapeField) NumPlainTextBytes() uint64 {
126119 return n .numPlainTextBytes
127120}
128121
122+ func (n * GeoShapeField ) EncodedShape () []byte {
123+ return n .encodedValue
124+ }
125+
129126func NewGeoShapeField (name string , arrayPositions []uint64 ,
130127 coordinates [][][][]float64 , typ string ) * GeoShapeField {
131128 return NewGeoShapeFieldWithIndexingOptions (name , arrayPositions ,
You can’t perform that action at this time.
0 commit comments