|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Query
A Query
object enables you to define search criteria that is used when searching Content Services ES2.
By defining a Query
object, you can search for content that contains specific data. For example,
you can search for content that contains the title Mortgage. To see an object of this type used in a code example,
see the Search Content Services ES2 content using the Java API quick start in Programming with LiveCycle ES4.
Method Summary | |
---|---|
void |
addStatement(Statement statement)
Sets a search statement that defines search criteria. |
java.lang.String |
getQueryString(QueryBuilder queryBuilder)
Returns the query string that defines search criteria. |
SortField[] |
getSortFields()
Returns an array of SortField objects that represent how results are sorted. |
void |
setQueryString(java.lang.String queryString)
Sets a query string that defines search criteria. |
void |
setSortFields(SortField[] sortFields)
Sets an array of SortField objects that represent how results are sorted. |
Method Detail |
---|
java.lang.String getQueryString(QueryBuilder queryBuilder) throws ContentServicesException
queryBuilder
- A QueryBuilder
object that contains search criteria.
ContentServicesException
void setQueryString(java.lang.String queryString)
@cm\\:name:\"MortgageForm\
.
For information about creating lucene query strings,
see Apache Lucene - Query Parser Syntax located at the following
URL: http://lucene.apache.org/java/2_1_0/queryparsersyntax.html.
Instead of using this method, you can define search criteria by invoking the
addStatement
method.
queryBuilder
- A lucene query string that defines search criteria.SortField[] getSortFields()
SortField
objects that represent how results are sorted.
SortField
objects that represent how results are sorted.void setSortFields(SortField[] sortFields)
SortField
objects that represent how results are sorted.
Using the method, you can sort fields in an ascending manner.
sortFields
- An array of SortField
objects that represent how results are sorted.void addStatement(Statement statement)
To see this method used in a code example, see the Search Content Services ES2 content using the Java API quick start in Programming with LiveCycle ES4.
statement
- A Statement
object that defines search criteria.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |