Skip to content

@FulltextIndex

Scope: property

Creates fulltext index for annotated field.

public class MyModel {
   @FulltextIndex(
            indexRadix = false,
            ignoreChars = "'",
            separatorChars = "!?",
            minWordLength = 5,
            stopWords = ["of", "the"])
   private String foo;
}

Note

Fulltext index may be created with @Index annotation too, but this one allows to override default parameters.

When no annotation parameters specified - default values will be used (default in annotation are the same as orient defaults).

If index name not defined it will be created by convention: .. For example above it will be "MyModel.foo"

If index with specified name is registered, and index type and parameters are the same then nothing will be done. If existing index type is different or parameters are different - it will be recreated with required type or parameters.

If existing index build with different fields or type different from FULLTEXT or FULLTEXT_HASH_INDEX, error will be thrown.