|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.search.QuerySpecification
Represents the set of parameters for a search query. This is a combination of a search string and a number of filter specifications. The search terms string is considered opaque and passed straight through to the underlying QueryEngine implementation. Thus the operators it supports (AND, OR, *, etc) are implementation defined
FilterSpecification
Constructor Summary | |
QuerySpecification(String terms,
boolean partial)
Creates a query specification for a simple search string, with no filters |
|
QuerySpecification(String terms,
boolean partial,
FilterSpecification[] filters)
Creates a query specification for a simple search string, with a number of filters |
Method Summary | |
void |
addFilter(FilterSpecification filter)
|
boolean |
allowPartialMatch()
Returns flag indicating whether partial (ie substring) matches should be allowed. |
boolean |
equals(Object o)
Two query specifications compare equal if they have the same search term, have the same setting for partial matches and contain the same set of filter specifications. |
FilterSpecification[] |
getFilters()
Returns the filter specifications |
String |
getTerms()
Returns the raw search string |
int |
hashCode()
Returns a hashcode compatible with the definition of the equals() method |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QuerySpecification(String terms, boolean partial)
terms
- the raw search stringpublic QuerySpecification(String terms, boolean partial, FilterSpecification[] filters)
terms
- the raw search stringfilters
- a number of filter specificationsMethod Detail |
public void addFilter(FilterSpecification filter)
public String getTerms()
public boolean allowPartialMatch()
public FilterSpecification[] getFilters()
public int hashCode()
public boolean equals(Object o)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |