|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleSearch
Search implements a simple fulltext search with some additions
to the search logic and exposes the query result in a scripting friendly
object structure. For more complex queries, see Query and the
QueryBuilder.
| Field Summary | |
|---|---|
static String |
RELATED_PREFIX
The prefix for a query searches for similar content. |
| Method Summary | |
|---|---|
void |
addPredicate(Predicate predicate)
Allows to add custom predicates for the underlying Query. |
String |
getExcerptPropertyNames()
|
long |
getHitsPerPage()
|
String |
getQuery()
|
List<String> |
getRelatedQueries()
|
SearchResult |
getResult()
|
String |
getSearchIn()
|
String |
getSearchProperties()
|
long |
getStart()
|
Trends |
getTrends()
|
void |
setExcerptPropertyNames(String properties)
|
void |
setHitsPerPage(long num)
|
void |
setQuery(String query)
Sets a new fulltext query that will be executed. |
void |
setSearchIn(String searchIn)
|
void |
setSearchProperties(String properties)
|
void |
setStart(long start)
This sets an offset for the actual search results, ie. |
| Field Detail |
|---|
static final String RELATED_PREFIX
| Method Detail |
|---|
void setQuery(String query)
query - the fulltext query.String getQuery()
void setSearchIn(String searchIn)
searchIn - the location where to search in.String getSearchIn()
void setHitsPerPage(long num)
num - the number of hits to display on a page.long getHitsPerPage()
long getStart()
void setStart(long start)
start) items of the underlying result iterator.
start - the offset in the actual search results to start fromvoid addPredicate(Predicate predicate)
Query.
predicate - a search predicate
SearchResult getResult()
throws RepositoryException
null if there is no query
parameter set.
RepositoryException - if an exception occurs while executing the
query.Trends getTrends()
List<String> getRelatedQueries()
throws RepositoryException
RepositoryException - if an error occurs while reading from
the repository.void setSearchProperties(String properties)
properties - comma separated names of the properties that will be searched.String getSearchProperties()
void setExcerptPropertyNames(String properties)
properties - comma separated names of the properties that will be
used in an excerpt.String getExcerptPropertyNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||