public abstract class FullTextQuery
extends java.lang.Object
Constructor and Description |
---|
FullTextQuery() |
Modifier and Type | Method and Description |
---|---|
abstract FullTextQuery |
addCollection(java.lang.String collection)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQuery |
addEventType(java.lang.String eventType)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQuery |
addProperty(java.lang.String property)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQueryResponse |
execute()
Execute the specified query.
|
abstract byte[] |
explain()
Returns a buffer containing information about the current query.
|
abstract FullTextQuery |
setCollections(java.lang.String... collections)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQuery |
setEventTypes(java.lang.String... eventTypes)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQuery |
setFilter(ExpressionBuilder filter)
Add a filter to the full text query.
|
abstract FullTextQuery |
setLimit(int limit)
By default all results for the query are returned to the client.
|
abstract FullTextQuery |
setProperties(java.lang.String... properties)
By default the FTS api searches across all collections, types and properties in the store.
|
abstract FullTextQuery |
setQueryString(java.lang.String queryString)
Set the term to be matched in the full text search.
|
public abstract FullTextQuery setCollections(java.lang.String... collections)
collections
- The collections to be included in the query.public abstract FullTextQuery addCollection(java.lang.String collection)
collection
- The collection to be added to the query.public abstract FullTextQuery setEventTypes(java.lang.String... eventTypes)
eventTypes
- The event types to be included in the query.public abstract FullTextQuery addEventType(java.lang.String eventType)
eventType
- The event type to be added to the query.public abstract FullTextQuery setProperties(java.lang.String... properties)
properties
- The properties to be included in the query.public abstract FullTextQuery addProperty(java.lang.String property)
property
- The event property to be added to the query.public abstract FullTextQuery setQueryString(java.lang.String queryString)
queryString
- A string containing a list of terms to be matched during the searchpublic abstract FullTextQuery setFilter(ExpressionBuilder filter)
public abstract FullTextQuery setLimit(int limit)
limit
- The number of results to be returned in the response.public abstract FullTextQueryResponse execute() throws QueryException
QueryException
- on error.public abstract byte[] explain() throws QueryException
QueryException
- if the information can't be provided.