public interface SuggestDefinition
Represents the criteria for a suggestion call,
in which the beginning of a term is supplied for possible suggested
endings.
-
Method Summary
Returns the cursor position for the suggest
call.
Returns the maximum number of suggestions to
fetch.
Returns the name of the query options used for
this query.
Returns the array of strings set for this
SuggestDefinition.
Returns the text of the suggestion call.
void
Sets the cursor position to use in the suggest
call.
void
Sets a limit for a suggest call.
void
Sets the name of the query options to be used
for this query.
void
Sets zero or more search strings to AND with the
suggestion call.
void
Sets one or more criteria for the suggestion
call.
-
Method Details
-
getOptionsName
Returns the name of the query options used for
this query.
- Returns:
- The options name.
-
setOptionsName
void setOptionsName(String name)
Sets the name of the query options to be used
for this query. If no query options node with the specified name
exists, the search will fail.
- Parameters:
name - The name of the saved query options node on
the server.
-
setStringCriteria
void setStringCriteria(String pqtext)
Sets one or more criteria for the suggestion
call.
- Parameters:
pqtext - A string for input to suggestions.
-
getStringCriteria
Returns the text of the suggestion call.
- Returns:
- The suggestion input.
-
setQueryStrings
void setQueryStrings(String... qtext)
Sets zero or more search strings to AND with the
suggestion call.
- Parameters:
qtext - Zero or more string queries to qualify
that input string.
-
getQueryStrings
Returns the array of strings set for this
SuggestDefinition.
- Returns:
- The query text strings and suggestion input.
-
setLimit
Sets a limit for a suggest call. Only this
number of suggestions will be returned by the server. Server
default is 10.
- Parameters:
limit - The maximum number of suggestions to
fetch.
-
getLimit
Returns the maximum number of suggestions to
fetch.
- Returns:
- The limit.
-
setCursorPosition
void setCursorPosition(Integer cursorPosition)
Sets the cursor position to use in the suggest
call.
- Parameters:
cursorPosition - The cursor position.
-
getCursorPosition
Returns the cursor position for the suggest
call.
- Returns:
- The cursor position
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.