org.apache.solr.search
Class SolrIndexSearcher.QueryCommand
java.lang.Object
org.apache.solr.search.SolrIndexSearcher.QueryCommand
- Enclosing class:
- SolrIndexSearcher
public static class SolrIndexSearcher.QueryCommand
- extends Object
A query request command to avoid having to change the method signatures
if we want to pass additional information to the searcher.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrIndexSearcher.QueryCommand
public SolrIndexSearcher.QueryCommand()
getScoreDoc
public ScoreDoc getScoreDoc()
setScoreDoc
public void setScoreDoc(ScoreDoc scoreDoc)
getQuery
public Query getQuery()
setQuery
public SolrIndexSearcher.QueryCommand setQuery(Query query)
getFilterList
public List<Query> getFilterList()
setFilterList
public SolrIndexSearcher.QueryCommand setFilterList(List<Query> filterList)
- Throws:
IllegalArgumentException
- if filter is not null.
setFilterList
public SolrIndexSearcher.QueryCommand setFilterList(Query f)
- A simple setter to build a filterList from a query
- Throws:
IllegalArgumentException
- if filter is not null.
getFilter
public DocSet getFilter()
setFilter
public SolrIndexSearcher.QueryCommand setFilter(DocSet filter)
- Throws:
IllegalArgumentException
- if filterList is not null.
getSort
public Sort getSort()
setSort
public SolrIndexSearcher.QueryCommand setSort(Sort sort)
getOffset
public int getOffset()
setOffset
public SolrIndexSearcher.QueryCommand setOffset(int offset)
getLen
public int getLen()
setLen
public SolrIndexSearcher.QueryCommand setLen(int len)
getSupersetMaxDoc
public int getSupersetMaxDoc()
setSupersetMaxDoc
public SolrIndexSearcher.QueryCommand setSupersetMaxDoc(int supersetMaxDoc)
getFlags
public int getFlags()
replaceFlags
public SolrIndexSearcher.QueryCommand replaceFlags(int flags)
setFlags
public SolrIndexSearcher.QueryCommand setFlags(int flags)
clearFlags
public SolrIndexSearcher.QueryCommand clearFlags(int flags)
getTimeAllowed
public long getTimeAllowed()
setTimeAllowed
public SolrIndexSearcher.QueryCommand setTimeAllowed(long timeAllowed)
isNeedDocSet
public boolean isNeedDocSet()
setNeedDocSet
public SolrIndexSearcher.QueryCommand setNeedDocSet(boolean needDocSet)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.