Skip to content

[DE-375] deprecated fulltext index #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/com/arangodb/ArangoCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ <T> MultiDocumentEntity<DocumentDeleteEntity<T>> deleteDocuments(
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
* Documentation</a>
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
*/
@Deprecated
IndexEntity ensureFulltextIndex(Iterable<String> fields, FulltextIndexOptions options) throws ArangoDBException;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/arangodb/async/ArangoCollectionAsync.java
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ CompletableFuture<IndexEntity> ensurePersistentIndex(
* @return information about the index
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
* Documentation</a>
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
*/
@Deprecated
CompletableFuture<IndexEntity> ensureFulltextIndex(
final Iterable<String> fields,
final FulltextIndexOptions options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ public CompletableFuture<IndexEntity> ensureGeoIndex(final Iterable<String> fiel
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
}

@Deprecated
@Override
public CompletableFuture<IndexEntity> ensureFulltextIndex(
final Iterable<String> fields,
Expand Down
27 changes: 26 additions & 1 deletion src/main/java/com/arangodb/entity/IndexType.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,30 @@
* @author Heiko Kernbach
*/
public enum IndexType {
primary, hash, skiplist, persistent, geo, geo1, geo2, fulltext, edge, ttl, zkd

primary,

hash,

skiplist,

persistent,

geo,

geo1,

geo2,

/**
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
*/
@Deprecated
fulltext,

edge,

ttl,

zkd
}
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public IndexEntity ensureGeoIndex(final Iterable<String> fields, final GeoIndexO
return executor.execute(createGeoIndexRequest(fields, options), IndexEntity.class);
}

@Deprecated
@Override
public IndexEntity ensureFulltextIndex(final Iterable<String> fields, final FulltextIndexOptions options)
throws ArangoDBException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ protected Request createGeoIndexRequest(final Iterable<String> fields, final Geo
return request;
}

@Deprecated
protected Request createFulltextIndexRequest(final Iterable<String> fields, final FulltextIndexOptions options) {
final Request request = request(db.dbName(), RequestType.POST, PATH_API_INDEX);
request.putQueryParam(COLLECTION, name);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/arangodb/model/FulltextIndexOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
* @author Mark Vollmary
* @see <a href="https://www.arangodb.com/docs/stable/http/indexes-fulltext.html#create-fulltext-index">API
* Documentation</a>
* @deprecated since ArangoDB 3.10, use ArangoSearch view instead.
*/
@Deprecated
public class FulltextIndexOptions extends IndexOptions<FulltextIndexOptions> {

private Iterable<String> fields;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/arangodb/model/OptionsBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static GeoIndexOptions build(final GeoIndexOptions options, final Iterabl
return options.fields(fields);
}

@Deprecated
public static FulltextIndexOptions build(final FulltextIndexOptions options, final Iterable<String> fields) {
return options.fields(fields);
}
Expand Down