FullTextSettings

The global settings of a full text search.

Methods
static void closeAll()
Close all fulltext settings, freeing up memory.
static void closeAll()
Close all fulltext settings, freeing up memory.
static FullTextSettings getInstance(Connection conn)
Get or create the fulltext settings for this database.
static FullTextSettings getInstance(Connection conn) throws SQLException
Get or create the fulltext settings for this database.
Parameters:
conn - the connection
Returns:
the settings
void addIgnored(Iterable words)
Amend set of ignored words
void addIgnored(Iterable words)
Amend set of ignored words
Parameters:
words - to add
void addIndexInfo(IndexInfo index)
Add an index.
void addIndexInfo(IndexInfo index)
Add an index.
Parameters:
index - the index
void addWord(String word, Integer id)
Register searchable word
void addWord(String word, Integer id)
Register searchable word
Parameters:
word - to register
id - to register with
void clearIgnored()
Clear set of ignored words
void clearIgnored()
Clear set of ignored words
void clearWordList()
Clear set of searchable words
void clearWordList()
Clear set of searchable words
String convertWord(String word)
Convert a word to uppercase.
String convertWord(String word)
Convert a word to uppercase. This method returns null if the word is in the ignore list.
Parameters:
word - the word to convert and check
Returns:
the uppercase version of the word or null
IndexInfo getIndexInfo(int indexId)
Get the index information for the given index id.
IndexInfo getIndexInfo(int indexId)
Get the index information for the given index id.
Parameters:
indexId - the index id
Returns:
the index info
String getWhitespaceChars()
String getWhitespaceChars()
Integer getWordId(String word)
Get id for a searchable word
Integer getWordId(String word)
Get id for a searchable word
Parameters:
word - to find id for
Returns:
Integer id or null if word is not found
boolean isInitialized()
Get the initialized flag.
boolean isInitialized()
Get the initialized flag.
Returns:
whether this instance is initialized
PreparedStatement prepare(Connection conn, String sql)
Prepare a statement.
PreparedStatement prepare(Connection conn, String sql) throws SQLException
Prepare a statement. The statement is cached in a soft reference cache.
Parameters:
conn - the connection
sql - the statement
Returns:
the prepared statement
void removeAllIndexes()
Remove all indexes from the settings.
void removeAllIndexes()
Remove all indexes from the settings.
void removeIndexInfo(IndexInfo index)
Remove an index from the settings.
void removeIndexInfo(IndexInfo index)
Remove an index from the settings.
Parameters:
index - the index to remove
void setInitialized(boolean b)
Set the initialized flag.
void setInitialized(boolean b)
Set the initialized flag.
Parameters:
b - the new value
void setWhitespaceChars(String whitespaceChars)
void setWhitespaceChars(String whitespaceChars)