Skip to content

Commit f41a0ac

Browse files
authored
GT-182 Deprecate fulltext index (#427)
1 parent cc76edc commit f41a0ac

6 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- New parameters (`cacheEnabled` and `storedValues`) for Persistent Indexes
1313
- New analyzers: `classification`, `nearest neighbors`, `minhash`
1414
- Add support for Inverted index
15+
- Deprecate fulltext index
1516

1617
## [1.3.3](https://github.com/arangodb/go-driver/tree/v1.3.3) (2022-07-27)
1718
- Fix `lastValue` field type

collection_indexes.go

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type CollectionIndexes interface {
3636
// Indexes returns a list of all indexes in the collection.
3737
Indexes(ctx context.Context) ([]Index, error)
3838

39+
// Deprecated: since 3.10 version. Use ArangoSearch view instead.
3940
// EnsureFullTextIndex creates a fulltext index in the collection, if it does not already exist.
4041
// Fields is a slice of attribute names. Currently, the slice is limited to exactly one attribute.
4142
// The index is returned, together with a boolean indicating if the index was newly created (true) or pre-existing (false).
@@ -80,6 +81,7 @@ type CollectionIndexes interface {
8081
EnsureInvertedIndex(ctx context.Context, options *InvertedIndexOptions) (Index, bool, error)
8182
}
8283

84+
// Deprecated: since 3.10 version. Use ArangoSearch view instead.
8385
// EnsureFullTextIndexOptions contains specific options for creating a full text index.
8486
type EnsureFullTextIndexOptions struct {
8587
// MinLength is the minimum character length of words to index. Will default to a server-defined

collection_indexes_impl.go

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (c *collection) Indexes(ctx context.Context) ([]Index, error) {
132132
return result, nil
133133
}
134134

135+
// Deprecated: since 3.10 version. Use ArangoSearch view instead.
135136
// EnsureFullTextIndex creates a fulltext index in the collection, if it does not already exist.
136137
//
137138
// Fields is a slice of attribute names. Currently, the slice is limited to exactly one attribute.

edge_collection_indexes_impl.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (c *edgeCollection) Indexes(ctx context.Context) ([]Index, error) {
5252
return result, nil
5353
}
5454

55+
// Deprecated: since 3.10 version. Use ArangoSearch view instead.
5556
// EnsureFullTextIndex creates a fulltext index in the collection, if it does not already exist.
5657
//
5758
// Fields is a slice of attribute names. Currently, the slice is limited to exactly one attribute.

index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type IndexType string
3030
// Symbolic constants for index types
3131
const (
3232
PrimaryIndex = IndexType("primary")
33-
FullTextIndex = IndexType("fulltext")
33+
FullTextIndex = IndexType("fulltext") // Deprecated: since 3.10 version. Use ArangoSearch view instead.
3434
HashIndex = IndexType("hash")
3535
SkipListIndex = IndexType("skiplist")
3636
PersistentIndex = IndexType("persistent")

vertex_collection_indexes_impl.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (c *vertexCollection) Indexes(ctx context.Context) ([]Index, error) {
5252
return result, nil
5353
}
5454

55+
// Deprecated: since 3.10 version. Use ArangoSearch view instead.
5556
// EnsureFullTextIndex creates a fulltext index in the collection, if it does not already exist.
5657
//
5758
// Fields is a slice of attribute names. Currently, the slice is limited to exactly one attribute.

0 commit comments

Comments
 (0)