| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER_ASC |
static int |
ORDER_DESC
Use these instead of the ones provided in the apache Solr package
in order to avoid introducing a dependency to that package in all modules
they're public because they are read from SearchServiceImpl
|
public static final int ORDER_DESC
public static final int ORDER_ASC
public Query(String query)
public String getQuery()
public String getQuery(boolean withTranslations)
public String[] getRefinements()
public String[] getRefinements(boolean useDividedRefinements)
public String getCurrentCursorMark()
public Query setQueryTranslation(QueryTranslation queryTranslation)
public QueryTranslation getQueryTranslation()
public Query addFacetQuery(QueryFacet queryFacet)
public Query setQueryFacets(List<QueryFacet> queryFacets)
public Integer getStart()
public Query setStart(int start)
public String getSort()
public int getSortOrder()
public void setSortOrder(int sortOrder)
public int getPageSize()
public Query setPageSize(int pageSize)
public Query setDefaultSolrFacets()
public void removeSolrFacet(SolrFacetType facetToRemove)
public void removeSolrFacet(String facetToRemove)
public void setSolrFacet(String facet)
public Query setDefaultTechnicalFacets()
public boolean areFacetsAllowed()
public Query setFacetsAllowed(boolean allowFacets)
allowFacets - booleanpublic Query setProduceFacetUnion(boolean produceFacetUnion)
public boolean isDefaultFacetsRequested()
public Query setDefaultFacetsRequested(boolean defaultFacetsRequested)
public boolean isApiQuery()
public Query setApiQuery(boolean apiQuery)
public boolean hasParameter(String key)
public Query setParameter(String key, String value)
key - The parameter namevalue - The value of the parameterpublic Query setParameters(Map<String,String> parameters)
parameters - Map containing parameter key-value pairs to be addedpublic Query convertAndSetSolrParameters(Map<String,Integer> parameters)
public Query setTechnicalFacetOffsets(Map<String,Integer> technicalFacetOffsetMap)
technicalFacetOffsetMap - Map of String, Integer containing technical facet names + offsetspublic Map<String,Integer> getTechnicalFacetOffsets()
public Query setTechnicalFacetLimits(Map<String,Integer> technicalFacetLimitMap)
technicalFacetLimitMap - Map of String, Integer containing technical facet names + limitspublic Map<String,Integer> getTechnicalFacetLimits()
public Query clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getQueryType()
public void setQueryType(String queryType)
public boolean doProduceFacetUnion()
public boolean isSpellcheckAllowed()
public Query setSpellcheckAllowed(boolean allowSpellcheck)
public String getExecutedQuery()
public void setExecutedQuery(String executedQuery)
public void divideRefinements()
public static String concatenateQueryTranslations(List<LanguageVersion> languageVersions)
Copyright © 2017 Europeana Foundation. All rights reserved.