Skip to content

Commit 687fc41

Browse files
committed
deprecated fulltext index (DE-375) (#454)
(cherry picked from commit 5084a49)
1 parent 2ca213e commit 687fc41

8 files changed

+36
-1
lines changed

src/main/java/com/arangodb/ArangoCollection.java

+2
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ <T> MultiDocumentEntity<DocumentDeleteEntity<T>> deleteDocuments(
655655
* @return information about the index
656656
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
657657
* Documentation</a>
658+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
658659
*/
660+
@Deprecated
659661
IndexEntity ensureFulltextIndex(Iterable<String> fields, FulltextIndexOptions options);
660662

661663
/**

src/main/java/com/arangodb/async/ArangoCollectionAsync.java

+2
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,9 @@ CompletableFuture<IndexEntity> ensurePersistentIndex(
699699
* @return information about the index
700700
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
701701
* Documentation</a>
702+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
702703
*/
704+
@Deprecated
703705
CompletableFuture<IndexEntity> ensureFulltextIndex(
704706
final Iterable<String> fields,
705707
final FulltextIndexOptions options);

src/main/java/com/arangodb/async/internal/ArangoCollectionAsyncImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ public CompletableFuture<IndexEntity> ensureGeoIndex(final Iterable<String> fiel
384384
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
385385
}
386386

387+
@Deprecated
387388
@Override
388389
public CompletableFuture<IndexEntity> ensureFulltextIndex(
389390
final Iterable<String> fields,

src/main/java/com/arangodb/entity/IndexType.java

+26-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,30 @@
2525
* @author Heiko Kernbach
2626
*/
2727
public enum IndexType {
28-
primary, hash, skiplist, persistent, geo, geo1, geo2, fulltext, edge, ttl, zkd
28+
29+
primary,
30+
31+
hash,
32+
33+
skiplist,
34+
35+
persistent,
36+
37+
geo,
38+
39+
geo1,
40+
41+
geo2,
42+
43+
/**
44+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
45+
*/
46+
@Deprecated
47+
fulltext,
48+
49+
edge,
50+
51+
ttl,
52+
53+
zkd
2954
}

src/main/java/com/arangodb/internal/ArangoCollectionImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ public IndexEntity ensureGeoIndex(final Iterable<String> fields, final GeoIndexO
376376
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
377377
}
378378

379+
@Deprecated
379380
@Override
380381
public IndexEntity ensureFulltextIndex(final Iterable<String> fields, final FulltextIndexOptions options) {
381382
return executor.execute(createFulltextIndexRequest(fields, options), IndexEntity.class);

src/main/java/com/arangodb/internal/InternalArangoCollection.java

+1
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ protected Request createGeoIndexRequest(final Iterable<String> fields, final Geo
464464
return request;
465465
}
466466

467+
@Deprecated
467468
protected Request createFulltextIndexRequest(final Iterable<String> fields, final FulltextIndexOptions options) {
468469
final Request request = request(db.dbName(), RequestType.POST, PATH_API_INDEX);
469470
request.putQueryParam(COLLECTION, name);

src/main/java/com/arangodb/model/FulltextIndexOptions.java

+2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
* @author Mark Vollmary
2727
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
2828
* Documentation</a>
29+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
2930
*/
31+
@Deprecated
3032
public final class FulltextIndexOptions extends IndexOptions<FulltextIndexOptions> {
3133

3234
private final IndexType type = IndexType.fulltext;

src/main/java/com/arangodb/model/OptionsBuilder.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public static GeoIndexOptions build(final GeoIndexOptions options, final Iterabl
6767
return options.fields(fields);
6868
}
6969

70+
@Deprecated
7071
public static FulltextIndexOptions build(final FulltextIndexOptions options, final Iterable<String> fields) {
7172
return options.fields(fields);
7273
}

0 commit comments

Comments
 (0)