public class CSPSearchQuery extends Object implements Serializable
CSPSearchQueryTerm
objects which are the search criteria.Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT |
static String |
GREATER_THAN |
static String |
LAST_MODIFIED_ON_INDEX_ID |
static String |
LOWER_THAN |
Constructor and Description |
---|
CSPSearchQuery() |
Modifier and Type | Method and Description |
---|---|
CSPSearchQueryTerm |
addQueryTerm(String indexId,
String operator,
String value) |
void |
createDateSearchTerms(List<CSPSearchQueryTerm> terms)
Creates CSPSearchQueryTerms based on last modified on index and are used to
search by date.
|
void |
deleteDateSearchTerms()
Delete last modified search terms from the list of CSPContentSearchTerms.
|
CSPSearchQueryTerm |
findQueryTerm(String indexId) |
String |
getDateAsString(Date date) |
DateRange |
getDateRange()
Date range of the documents to search for
|
List<Integer> |
getNodeIds() |
Date |
getStringAsDate(String str) |
List<CSPSearchQueryTerm> |
getTerms() |
boolean |
isAutoDiscover()
Return true if auto discovery of terms is enabled.
|
void |
removeQueryTerm(CSPSearchQueryTerm term) |
void |
setAutoDiscover(boolean autoDiscover)
Enable discovering terms based on properties on *this* class subclasses
|
void |
setDateRange(DateRange dateRange) |
void |
setNodeIds(List<Integer> nodeIds)
Sets the Node Id (the content type) - identifies what documents are to be
listed/stored/updated.
|
void |
setTerms(List<CSPSearchQueryTerm> terms) |
public static final String LAST_MODIFIED_ON_INDEX_ID
public static final String GREATER_THAN
public static final String LOWER_THAN
public static final String DATE_FORMAT
public boolean isAutoDiscover()
public void setAutoDiscover(boolean autoDiscover)
autoDiscover
- true to enabled auto discoverypublic DateRange getDateRange()
public void setDateRange(DateRange dateRange)
public void setTerms(List<CSPSearchQueryTerm> terms)
public List<CSPSearchQueryTerm> getTerms() throws Exception
Exception
public CSPSearchQueryTerm addQueryTerm(String indexId, String operator, String value)
public void createDateSearchTerms(List<CSPSearchQueryTerm> terms)
terms
- public void deleteDateSearchTerms()
public void removeQueryTerm(CSPSearchQueryTerm term)
public CSPSearchQueryTerm findQueryTerm(String indexId)
public void setNodeIds(List<Integer> nodeIds)
nodeId
- Identifies the content type