Skip to content

Commit fb30559

Browse files
committed
MB-59633: Removed encoded geo shapes from dictionaries
1 parent dd102de commit fb30559

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

document/field_geoshape.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ func (n *GeoShapeField) AnalyzedTokenFrequencies() index.TokenFrequencies {
8787
func (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+
129126
func NewGeoShapeField(name string, arrayPositions []uint64,
130127
coordinates [][][][]float64, typ string) *GeoShapeField {
131128
return NewGeoShapeFieldWithIndexingOptions(name, arrayPositions,

0 commit comments

Comments
 (0)