public class SearchCriteria extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchCriteria.BaseFacetDefinition
Base class for all facet definitions; encapsulates any common facet definition attributes like sort order of aggregated results.
|
static class |
SearchCriteria.CommaSeparatedMultipleValue
Supports comma separated multiple values.
|
static class |
SearchCriteria.DateValue
Holder for the criterion of date type.
|
static class |
SearchCriteria.FacetValue |
static class |
SearchCriteria.HierarchicalValue
Represents a selactable value (file location, category etc.) that is a
part of the hierarchical structure.
|
static class |
SearchCriteria.MultipleValue
Represents a multiple value holder.
|
static class |
SearchCriteria.NodeProperty
Single search criterion on the node property.
|
static class |
SearchCriteria.NodePropertyDescriptor
Contains description of the node property.
|
protected static class |
SearchCriteria.NodePropertyFactory |
protected static class |
SearchCriteria.NodePropertyMapFactory |
static class |
SearchCriteria.Ordering
Represents an ordering definition
|
static class |
SearchCriteria.Term
Single text search criterion with a search text and match type.
|
| Constructor and Description |
|---|
SearchCriteria()
Initializes an instance of this class.
|
public SearchCriteria.DateValue getCreated()
public String getCreatedBy()
public Collection<SearchCriteria.BaseFacetDefinition> getFacetDefinitions()
public Map<String,Map<String,SearchCriteria.FacetValue>> getFacets()
public SearchCriteria.HierarchicalValue getFilePath()
public String getFileType()
public int getItemsPerPage()
public SearchCriteria.CommaSeparatedMultipleValue getLanguages()
public SearchCriteria.DateValue getLastModified()
public String getLastModifiedBy()
public long getLimit()
public String getNodeType()
public long getOffset()
public String getOriginSiteKey()
public SearchCriteria.HierarchicalValue getPagePath()
public Map<String,Map<String,SearchCriteria.NodeProperty>> getProperties()
public List<SearchCriteria.NodeProperty> getPropertiesAll()
@Deprecated public String getRawQuery()
public SearchCriteria.CommaSeparatedMultipleValue getSites()
public SearchCriteria.CommaSeparatedMultipleValue getSitesForReferences()
public List<SearchCriteria.Term> getTerms()
public List<SearchCriteria.Ordering> getOrderings()
public boolean isEmpty()
true if none of required search parameters was
specified; otherwise returns false.true if none of required search parameters was
specified; otherwise returns falsepublic void setCreated(SearchCriteria.DateValue creationDate)
public void setCreatedBy(String author)
public void setFacetDefinitions(Collection<SearchCriteria.BaseFacetDefinition> facetDefinitions)
public void setFacets(Map<String,Map<String,SearchCriteria.FacetValue>> facets)
facets - the active facet filterspublic void setFilePath(SearchCriteria.HierarchicalValue fileLocation)
public void setFileType(String fileType)
public void setItemsPerPage(int itemsPerPage)
public void setLanguages(SearchCriteria.CommaSeparatedMultipleValue languages)
public void setLastModified(SearchCriteria.DateValue lastModificationDate)
public void setLastModifiedBy(String lastEditor)
public void setLimit(long limit)
limit.limit - the maximum hot count to be returnedpublic void setNodeType(String nodeType)
public void setOffset(long offset)
offset.offset - the start offset of the search hit listpublic void setOriginSiteKey(String originSiteKey)
originSiteKey - the origin site key, i.e. the key of the "current"
site, where the query was executed from. This value is used
for example to resolve the tag by its name as tags are
site-specific.public void setPagePath(SearchCriteria.HierarchicalValue pagePath)
public void setProperties(Map<String,Map<String,SearchCriteria.NodeProperty>> properties)
@Deprecated public void setRawQuery(String rawQuery)
public void setSites(SearchCriteria.CommaSeparatedMultipleValue sites)
public void setSitesForReferences(SearchCriteria.CommaSeparatedMultipleValue sitesForReferences)
public void setTerm(String term)
term - the search term stringpublic void setTerms(List<SearchCriteria.Term> textSearches)
public void setOrderings(List<SearchCriteria.Ordering> orderings)
public boolean isFileSearch()
true if this search criteria represents file search; false otherwisepublic boolean isSiteSearch()
true if this search criteria represents site search; false otherwisepublic boolean isExcludeFileReferences()
true, if file references in site content are excluded from search results;
false otherwisepublic void setExcludeFileReferences(boolean excludeFileReferences)
excludeFileReferences - true to exclude file references in the content from search results; false - to
include them.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.