public static FulltextIndexOptions build(final FulltextIndexOptions options, final Iterable<String> fields) { return options.fields(fields); }
private static void ensureFulltextIndex(final CollectionOperations collection, final FulltextIndex annotation) { collection.ensureFulltextIndex(Collections.singleton(annotation.field()), new FulltextIndexOptions().minLength(annotation.minLength() > -1 ? annotation.minLength() : null)); }
protected Request createFulltextIndexRequest(final Iterable<String> fields, final FulltextIndexOptions options) { final Request request = request(db.name(), RequestType.POST, PATH_API_INDEX); request.putQueryParam(COLLECTION, name); request.setBody( util().serialize(OptionsBuilder.build(options != null ? options : new FulltextIndexOptions(), fields))); return request; }
private static void ensureFulltextIndex(final CollectionOperations collection, final FulltextIndex annotation) { collection.ensureFulltextIndex(Collections.singleton(annotation.field()), new FulltextIndexOptions().minLength(annotation.minLength() > -1 ? annotation.minLength() : null)); }
private static void ensureFulltextIndex( final CollectionOperations collection, final ArangoPersistentProperty value) { final FulltextIndexOptions options = new FulltextIndexOptions(); value.getFulltextIndexed().ifPresent(i -> options.minLength(i.minLength() > -1 ? i.minLength() : null)); collection.ensureFulltextIndex(Collections.singleton(value.getFieldName()), options); }
private static void ensureFulltextIndex( final CollectionOperations collection, final ArangoPersistentProperty value) { final FulltextIndexOptions options = new FulltextIndexOptions(); value.getFulltextIndexed().ifPresent(i -> options.minLength(i.minLength() > -1 ? i.minLength() : null)); collection.ensureFulltextIndex(Collections.singleton(value.getFieldName()), options); }