Package com.complexible.stardog.search
Class SearchOptions
- java.lang.Object
-
- com.complexible.stardog.search.SearchOptions
-
- All Implemented Interfaces:
MetaPropertyProvider
public final class SearchOptions extends java.lang.Object implements MetaPropertyProvider
Database options for the waldo search index.
- Since:
- 1.2
- Version:
- 6.0
- Author:
- Michael Grove
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_VECTOR_MODEL
static java.lang.String
FTS_CATEGORY
static ConfigProperty<java.lang.Boolean>
INDEX_COMPUTE_NORM
static ConfigProperty<java.util.Collection<IRI>>
INDEX_DATATYPES
Option to specify the datatypes for which to index literals.static ConfigProperty<java.util.Collection<IRI>>
INDEX_PROPERTIES_EXCLUDED
Option to specify the properties to be excluded for literals to be indexed.static ConfigProperty<java.util.Collection<IRI>>
INDEX_PROPERTIES_INCLUDED
Option to specify the only properties for literals to be indexed.static ConfigProperty<java.util.Collection<java.lang.String>>
INDEX_STOPWORDS
Option to specify the stopwords for which to filter terms while indexing terms.static ConfigProperty<java.util.Collection<java.lang.String>>
INDEX_TOKEN_FILTERS
static ConfigProperty<java.lang.Boolean>
LEADING_WILDCARD_SEARCH_ENABLED
Option to enable the Lucene query parser's support of leading wildcards in queries as shown here.static ConfigProperty<java.lang.Boolean>
OPTIMIZE
static java.lang.String
PROPERTY_DEFAULT_QUERY_OPERATOR
static java.lang.String
PROPERTY_INDEX_COMPUTE_NORM
static java.lang.String
PROPERTY_INDEX_DATATYPE
static java.lang.String
PROPERTY_INDEX_PROPERTIES_EXCLUDED
static java.lang.String
PROPERTY_INDEX_PROPERTIES_INCLUDED
static java.lang.String
PROPERTY_INDEX_STOPWORDS
static java.lang.String
PROPERTY_LEADING_WILDCARD_SEARCH_ENABLED
static java.lang.String
PROPERTY_OPTIMIZE
static java.lang.String
PROPERTY_REINDEX_CACHE_SIZE
static java.lang.String
PROPERTY_SEARCH_CONTEXTS_EXCLUDED
static java.lang.String
PROPERTY_SEARCH_CONTEXTS_FILTER
static java.lang.String
PROPERTY_SEARCH_INDEX_BATCH_SIZE
static java.lang.String
PROPERTY_SEARCH_INDEX_STATE
static java.lang.String
PROPERTY_SEARCH_LEXICAL
static java.lang.String
PROPERTY_SEARCH_PAGE_SIZE
static java.lang.String
PROPERTY_SEARCH_SEMANTIC_CONTEXTS_FILTER
static java.lang.String
PROPERTY_SEARCH_SEMANTIC_ENABLED
static java.lang.String
PROPERTY_SEARCH_SEMANTIC_MODEL
static java.lang.String
PROPERTY_TOKEN_FILTERS
static java.lang.String
PROPERTY_USE_VACUUMING
static java.lang.String
PROPERTY_WORD_BREAK_CHARS
static ConfigProperty<java.lang.Integer>
REINDEX_CACHE_SIZE
Option to specify the cache size of literals that is used for seeing if a literal is reindexed before.static ConfigProperty<java.lang.Double>
RELATIVE_THRESHOLD
static ConfigProperty<java.lang.Boolean>
SEARCH_CONTEXTS_EXCLUDED
Option to specify ifSEARCH_CONTEXTS_FILTER
, the collection of contexts in named graphs, is going to be leveraged as either excluded or included for literals to be indexed.static ConfigProperty<java.util.Collection<IRI>>
SEARCH_CONTEXTS_FILTER
Option to specify the collection of contexts in named graphs to be excluded or included for literals to be indexed depending onSEARCH_CONTEXTS_EXCLUDED
option: By defaultSEARCH_CONTEXTS_EXCLUDED
is set totrue
, meaning this set is to be leveraged as an exclusion list.static ConfigProperty<java.lang.Integer>
SEARCH_DEFAULT_LIMIT
Deprecated.static ConfigProperty<java.lang.String>
SEARCH_DEFAULT_QUERY_OPERATOR
static ConfigProperty<java.lang.Integer>
SEARCH_INDEX_BATCH_SIZE
static ConfigProperty<java.lang.Boolean>
SEARCH_INDEX_DIRTY
Deprecated.static ConfigProperty<com.complexible.stardog.search.SearchIndexState>
SEARCH_INDEX_STATE
State of the search index, seeSearchIndexState
static ConfigProperty<java.lang.Boolean>
SEARCH_LEXICAL
static ConfigProperty<java.lang.Integer>
SEARCH_PAGE_SIZE
Specify the page size used for iteration over results from the full-text index.static ConfigProperty<java.lang.Boolean>
SEARCH_REINDEX_IN_TX
Flag to indicate if the search index should be updated as part of update transactions.static ConfigProperty<java.lang.Boolean>
SEARCH_SEMANTIC
static ConfigProperty<java.util.Collection<IRI>>
SEARCH_SEMANTIC_CONTEXTS_FILTER
static ConfigProperty<java.lang.String>
SEARCH_SEMANTIC_MODEL
static ConfigProperty<java.lang.Boolean>
SEARCHABLE
Option for whether or not full-text search via Waldo is enabled for the databasestatic ConfigProperty<java.lang.Boolean>
USE_VACUUMING
static ConfigProperty<java.lang.String>
WORD_BREAK_CHARS
-
Constructor Summary
Constructors Constructor Description SearchOptions()
-
-
-
Field Detail
-
PROPERTY_SEARCH_INDEX_STATE
public static final java.lang.String PROPERTY_SEARCH_INDEX_STATE
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_SEMANTIC_MODEL
public static final java.lang.String PROPERTY_SEARCH_SEMANTIC_MODEL
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_SEMANTIC_ENABLED
public static final java.lang.String PROPERTY_SEARCH_SEMANTIC_ENABLED
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_LEXICAL
public static final java.lang.String PROPERTY_SEARCH_LEXICAL
- See Also:
- Constant Field Values
-
PROPERTY_LEADING_WILDCARD_SEARCH_ENABLED
public static final java.lang.String PROPERTY_LEADING_WILDCARD_SEARCH_ENABLED
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_PAGE_SIZE
public static final java.lang.String PROPERTY_SEARCH_PAGE_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT_QUERY_OPERATOR
public static final java.lang.String PROPERTY_DEFAULT_QUERY_OPERATOR
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_DATATYPE
public static final java.lang.String PROPERTY_INDEX_DATATYPE
- See Also:
- Constant Field Values
-
PROPERTY_WORD_BREAK_CHARS
public static final java.lang.String PROPERTY_WORD_BREAK_CHARS
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_STOPWORDS
public static final java.lang.String PROPERTY_INDEX_STOPWORDS
- See Also:
- Constant Field Values
-
PROPERTY_TOKEN_FILTERS
public static final java.lang.String PROPERTY_TOKEN_FILTERS
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_PROPERTIES_EXCLUDED
public static final java.lang.String PROPERTY_INDEX_PROPERTIES_EXCLUDED
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_CONTEXTS_FILTER
public static final java.lang.String PROPERTY_SEARCH_CONTEXTS_FILTER
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_CONTEXTS_EXCLUDED
public static final java.lang.String PROPERTY_SEARCH_CONTEXTS_EXCLUDED
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_SEMANTIC_CONTEXTS_FILTER
public static final java.lang.String PROPERTY_SEARCH_SEMANTIC_CONTEXTS_FILTER
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_PROPERTIES_INCLUDED
public static final java.lang.String PROPERTY_INDEX_PROPERTIES_INCLUDED
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_COMPUTE_NORM
public static final java.lang.String PROPERTY_INDEX_COMPUTE_NORM
- See Also:
- Constant Field Values
-
PROPERTY_OPTIMIZE
public static final java.lang.String PROPERTY_OPTIMIZE
- See Also:
- Constant Field Values
-
PROPERTY_USE_VACUUMING
public static final java.lang.String PROPERTY_USE_VACUUMING
- See Also:
- Constant Field Values
-
PROPERTY_REINDEX_CACHE_SIZE
public static final java.lang.String PROPERTY_REINDEX_CACHE_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_SEARCH_INDEX_BATCH_SIZE
public static final java.lang.String PROPERTY_SEARCH_INDEX_BATCH_SIZE
- See Also:
- Constant Field Values
-
FTS_CATEGORY
public static final java.lang.String FTS_CATEGORY
- See Also:
- Constant Field Values
-
DEFAULT_VECTOR_MODEL
public static final java.lang.String DEFAULT_VECTOR_MODEL
- See Also:
- Constant Field Values
-
SEARCH_INDEX_DIRTY
@Deprecated public static final ConfigProperty<java.lang.Boolean> SEARCH_INDEX_DIRTY
Deprecated.
-
SEARCH_INDEX_STATE
public static final ConfigProperty<com.complexible.stardog.search.SearchIndexState> SEARCH_INDEX_STATE
State of the search index, see
SearchIndexState
Full name: search.index.state
Default value:SearchIndexState.Dirty
-
SEARCH_REINDEX_IN_TX
public static final ConfigProperty<java.lang.Boolean> SEARCH_REINDEX_IN_TX
Flag to indicate if the search index should be updated as part of update transactions. If this flag is set to
false
and search queries will return incomplete results until search index is rebuilt.Full name: search.reindex.tx
Default value:true
-
SEARCHABLE
public static final ConfigProperty<java.lang.Boolean> SEARCHABLE
Option for whether or not full-text search via Waldo is enabled for the database
-
SEARCH_LEXICAL
public static final ConfigProperty<java.lang.Boolean> SEARCH_LEXICAL
-
SEARCH_SEMANTIC
public static final ConfigProperty<java.lang.Boolean> SEARCH_SEMANTIC
-
SEARCH_SEMANTIC_MODEL
public static final ConfigProperty<java.lang.String> SEARCH_SEMANTIC_MODEL
-
LEADING_WILDCARD_SEARCH_ENABLED
public static final ConfigProperty<java.lang.Boolean> LEADING_WILDCARD_SEARCH_ENABLED
Option to enable the Lucene query parser's support of leading wildcards in queries as shown here. This option should be used with care because leading wildcard searches are not very efficient.
Full name: leading.wildcard.search.enabled
Default value:false
-
SEARCH_PAGE_SIZE
public static final ConfigProperty<java.lang.Integer> SEARCH_PAGE_SIZE
Specify the page size used for iteration over results from the full-text index. A page is held in memory, so this count should NOT be large.Full name: search.page.size
Default value:100
-
SEARCH_DEFAULT_LIMIT
@Deprecated public static final ConfigProperty<java.lang.Integer> SEARCH_DEFAULT_LIMIT
Deprecated.Default max number of results from a lucene search, can be overridden in the searchFull name: search.default.limit
Default value:-1
(all results)
-
RELATIVE_THRESHOLD
public static final ConfigProperty<java.lang.Double> RELATIVE_THRESHOLD
-
SEARCH_DEFAULT_QUERY_OPERATOR
public static final ConfigProperty<java.lang.String> SEARCH_DEFAULT_QUERY_OPERATOR
-
INDEX_PROPERTIES_EXCLUDED
public static final ConfigProperty<java.util.Collection<IRI>> INDEX_PROPERTIES_EXCLUDED
Option to specify the properties to be excluded for literals to be indexed. Default value is an empty HashSet, could be populated with IRIs using the same constructor. Full name: "search.index.properties.excluded"
-
INDEX_PROPERTIES_INCLUDED
public static final ConfigProperty<java.util.Collection<IRI>> INDEX_PROPERTIES_INCLUDED
Option to specify the only properties for literals to be indexed. Default value is an empty HashSet, could be populated with IRIs using the same constructor. Please note that ifINDEX_PROPERTIES_EXCLUDED
option is set, this option will have no effect. Full name: "search.index.properties.included"
-
SEARCH_CONTEXTS_FILTER
public static final ConfigProperty<java.util.Collection<IRI>> SEARCH_CONTEXTS_FILTER
Option to specify the collection of contexts in named graphs to be excluded or included for literals to be indexed depending onSEARCH_CONTEXTS_EXCLUDED
option: By defaultSEARCH_CONTEXTS_EXCLUDED
is set totrue
, meaning this set is to be leveraged as an exclusion list. Otherwise, which is the case that option is set tofalse
, the set is to be an inclusive one. Default value is an empty collection, could be populated with IRIs using the same constructor. Full name: "search.index.contexts.filter"
-
SEARCH_CONTEXTS_EXCLUDED
public static final ConfigProperty<java.lang.Boolean> SEARCH_CONTEXTS_EXCLUDED
Option to specify ifSEARCH_CONTEXTS_FILTER
, the collection of contexts in named graphs, is going to be leveraged as either excluded or included for literals to be indexed. Default value:true
Full name: "search.index.contexts.excluded"
-
SEARCH_SEMANTIC_CONTEXTS_FILTER
public static final ConfigProperty<java.util.Collection<IRI>> SEARCH_SEMANTIC_CONTEXTS_FILTER
-
INDEX_DATATYPES
public static final ConfigProperty<java.util.Collection<IRI>> INDEX_DATATYPES
Option to specify the datatypes for which to index literals.
-
INDEX_COMPUTE_NORM
public static final ConfigProperty<java.lang.Boolean> INDEX_COMPUTE_NORM
-
OPTIMIZE
public static final ConfigProperty<java.lang.Boolean> OPTIMIZE
-
USE_VACUUMING
public static final ConfigProperty<java.lang.Boolean> USE_VACUUMING
-
WORD_BREAK_CHARS
public static final ConfigProperty<java.lang.String> WORD_BREAK_CHARS
-
INDEX_STOPWORDS
public static final ConfigProperty<java.util.Collection<java.lang.String>> INDEX_STOPWORDS
Option to specify the stopwords for which to filter terms while indexing terms. The default value isnull
, which is leveraged as Lucene's ENGLISH_STOP_WORDS_SET For customization, a list of string should be assigned, e.g. Arrays.asList("a", "an")
-
INDEX_TOKEN_FILTERS
public static final ConfigProperty<java.util.Collection<java.lang.String>> INDEX_TOKEN_FILTERS
-
REINDEX_CACHE_SIZE
public static final ConfigProperty<java.lang.Integer> REINDEX_CACHE_SIZE
Option to specify the cache size of literals that is used for seeing if a literal is reindexed before. Full name: "search.reindex.cache.size"
-
SEARCH_INDEX_BATCH_SIZE
public static final ConfigProperty<java.lang.Integer> SEARCH_INDEX_BATCH_SIZE
-
-