Refy Item Full Text Index Creator

The RefyItemFullTextIndexCreator is a custom component used to create the fulltext indexes to filter the items query such links, collections and tables using the FullText-Search (FTS) approach

Author

N7ghtm4r3 - Tecknobit

Since

1.0.1

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val _ADD_FULLTEXT_INDEX_: String = " ADD FULLTEXT INDEX %s ("
Link copied to clipboard
val _IN_BOOLEAN_MODE: String = " IN BOOLEAN MODE"
Link copied to clipboard
val _IN_NATURAL_LANGUAGE_MODE: String = " IN NATURAL LANGUAGE MODE"
Link copied to clipboard
protected val _KEY_NAME: String = "Key_name='"
Link copied to clipboard
val ALTER_TABLE_: String = "ALTER TABLE "
Link copied to clipboard
protected open var entityManager: EntityManager
Link copied to clipboard
FULL_TEXT_INDEX_FIELDS the fields used to create the fulltext index
Link copied to clipboard
val SHOW_INDEX_FROM_: String = "SHOW INDEX FROM "

Functions

Link copied to clipboard
protected open fun assembleCreateIndexQuery(table: String, indexType: String, indexName: String, fields: List<String>): String
Link copied to clipboard
Method used to create the fulltext index in the collections table
Link copied to clipboard
protected open fun createFullTextIndex(table: String, indexName: String, fields: List<String>)
Link copied to clipboard
@PostConstruct
open fun createFullTextIndexes()
Method invoked automatically to create the different fulltext indexes required
Link copied to clipboard
protected open fun createIndex(table: String, indexName: String, indexType: String, fields: List<String>)
Link copied to clipboard
Method used to create the fulltext index in the links table
Link copied to clipboard
Method used to create the fulltext index in the teams table
Link copied to clipboard
open fun formatFullTextKeywords(keywords: Collection<String>, escapeDoubleQuotes: Boolean): String
open fun formatFullTextKeywords(keywords: Collection<String>, trailingCharacter: String, escapeDoubleQuotes: Boolean): String