Package com.franz.agraph.repository
Class AGFreetextIndexConfig
java.lang.Object
com.franz.agraph.repository.AGFreetextIndexConfig
The class of freetext index configurations.
An index configuration can be customized and then used to create a new freetext index.
See documentation for freetext index parameters.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionSee documentation for freetext index parameters.See documentation for freetext index parameters.boolean
See documentation for freetext index parameters.See documentation for freetext index parameters.See documentation for freetext index parameters.int
See documentation for freetext index parameters.See documentation for freetext index parameters.See documentation for freetext index parameters.See documentation for freetext index parameters.See documentation for freetext index parameters.static AGFreetextIndexConfig
Returns a new instance having the default index configuration.void
setIndexLiterals
(boolean bool) See documentation for freetext index parameters.void
setIndexResources
(String str) See documentation for freetext index parameters.void
setMinimumWordSize
(int size) See documentation for freetext index parameters.void
setTokenizer
(String tokenizerName) See documentation for freetext index parameters.toString()
-
Field Details
-
PREDICATES
- See Also:
-
INDEX_LITERALS
- See Also:
-
INDEX_LITERAL_TYPES
- See Also:
-
INDEX_RESOURCES
- See Also:
-
INDEX_FIELDS
- See Also:
-
MINIMUM_WORD_SIZE
- See Also:
-
STOP_WORDS
- See Also:
-
WORD_FILTERS
- See Also:
-
INNER_CHARS
- See Also:
-
BORDER_CHARS
- See Also:
-
TOKENIZER
- See Also:
-
-
Method Details
-
newInstance
Returns a new instance having the default index configuration.The index configuration can be customized and then used to create a new freetext index.
See documentation for freetext index parameters.
- Returns:
- AGFreetextIndexConfig the created config
- See Also:
-
getPredicates
See documentation for freetext index parameters.- Returns:
- List the Predicates being indexed
-
getIndexLiterals
public boolean getIndexLiterals()See documentation for freetext index parameters.- Returns:
- boolean the current IndexLiterals setting
-
setIndexLiterals
public void setIndexLiterals(boolean bool) See documentation for freetext index parameters.- Parameters:
bool
- true if Literals should be indexed, false if not
-
getIndexLiteralTypes
See documentation for freetext index parameters.- Returns:
- the current IndexLiteralTypes setting
-
getIndexResources
See documentation for freetext index parameters.- Returns:
- String the current indexResources setting
-
setIndexResources
See documentation for freetext index parameters.- Parameters:
str
- A string indicating how to index resources
-
getIndexFields
See documentation for freetext index parameters.- Returns:
- List the fields (s, p, o, g) being indexed
-
getMinimumWordSize
public int getMinimumWordSize()See documentation for freetext index parameters.- Returns:
- int the minimum word size associated with this config
-
setMinimumWordSize
public void setMinimumWordSize(int size) See documentation for freetext index parameters.- Parameters:
size
- the minimum word size to be set
-
getStopWords
See documentation for freetext index parameters.- Returns:
- List the stop words associated with this config
-
getWordFilters
See documentation for freetext index parameters.- Returns:
- List the word filters associated with this config
-
getInnerChars
-
getBorderChars
See documentation for freetext index parameters.- Returns:
- List the border characters associated with this config
-
getTokenizer
See documentation for freetext index parameters.- Returns:
- String name of the tokenizer
-
setTokenizer
See documentation for freetext index parameters.- Parameters:
tokenizerName
- name of a valid tokenizer
-
toString
-