Interface SearchConnection
- All Superinterfaces:
AutoCloseable,Connection
Extends the standard SNARL Connection exposing the full-text search support provided by Waldo.
- Since:
- 0.7
- Version:
- 2.0
- Author:
- Michael Grove
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default number of results to return from a searchstatic final Stringstatic final floatConstant for no minimum threshold on returned search results -
Method Summary
Methods inherited from interface com.complexible.stardog.api.Connection
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, generateModel, get, getOption, getSchema, graph, graph, graphAliases, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, selectPlan, selectPlan, size, transactions, update, update
-
Field Details
-
NO_MINIMUM_THRESHOLD
static final float NO_MINIMUM_THRESHOLDConstant for no minimum threshold on returned search results- See Also:
-
DEFAULT_LIMIT
static final int DEFAULT_LIMITThe default number of results to return from a search- See Also:
-
MATCH_PREDICATE
- See Also:
-
-
Method Details
-
search
Create a Searcher for conducting full-text searches against your RDF database via Waldo.- Returns:
- a new Searcher object
- Throws:
StardogException- if a searcher cannot be created, either because the database you are connected to does not not have search enabled or the search plugin is not installed.
-