Skip to content

Commit 5084a49

Browse files
authored
deprecated fulltext index (DE-375) (#454)
1 parent 0b8c09a commit 5084a49

File tree

8 files changed

+36
-1
lines changed

8 files changed

+36
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,9 @@ <T> MultiDocumentEntity<DocumentDeleteEntity<T>> deleteDocuments(
519519
* @throws ArangoDBException
520520
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
521521
* Documentation</a>
522+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
522523
*/
524+
@Deprecated
523525
IndexEntity ensureFulltextIndex(Iterable<String> fields, FulltextIndexOptions options) throws ArangoDBException;
524526

525527
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ CompletableFuture<IndexEntity> ensurePersistentIndex(
487487
* @return information about the index
488488
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
489489
* Documentation</a>
490+
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
490491
*/
492+
@Deprecated
491493
CompletableFuture<IndexEntity> ensureFulltextIndex(
492494
final Iterable<String> fields,
493495
final FulltextIndexOptions options);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ public CompletableFuture<IndexEntity> ensureGeoIndex(final Iterable<String> fiel
291291
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
292292
}
293293

294+
@Deprecated
294295
@Override
295296
public CompletableFuture<IndexEntity> ensureFulltextIndex(
296297
final Iterable<String> fields,

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

Lines changed: 26 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ public IndexEntity ensureGeoIndex(final Iterable<String> fields, final GeoIndexO
285285
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
286286
}
287287

288+
@Deprecated
288289
@Override
289290
public IndexEntity ensureFulltextIndex(final Iterable<String> fields, final FulltextIndexOptions options)
290291
throws ArangoDBException {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ protected Request createGeoIndexRequest(final Iterable<String> fields, final Geo
582582
return request;
583583
}
584584

585+
@Deprecated
585586
protected Request createFulltextIndexRequest(final Iterable<String> fields, final FulltextIndexOptions options) {
586587
final Request request = request(db.dbName(), RequestType.POST, PATH_API_INDEX);
587588
request.putQueryParam(COLLECTION, name);

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

Lines changed: 2 additions & 0 deletions
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 class FulltextIndexOptions extends IndexOptions<FulltextIndexOptions> {
3133

3234
private Iterable<String> fields;

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

Lines changed: 1 addition & 0 deletions
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)