Package org.apache.solr.search
Class QueryCommand
java.lang.Object
org.apache.solr.search.QueryCommand
A query request command to avoid having to change the method signatures if we want to pass
additional information to the searcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearFlags(int flags) List<org.apache.lucene.search.Query> intgetFlags()intgetLen()intintbooleanintorg.apache.lucene.search.QuerygetQuery()booleanorg.apache.lucene.search.SortgetSort()intbooleanlongbooleanbooleanbooleanreplaceFlags(int flags) search(SolrIndexSearcher searcher) setCursorMark(CursorMark cursorMark) voidsetDistribStatsDisabled(boolean distribStatsDisabled) setFilterList(List<org.apache.lucene.search.Query> filterList) setFilterList(org.apache.lucene.search.Query f) A simple setter to build a filterList from a querysetFlags(int flags) setLen(int len) voidsetMaxHitsAllowed(int maxHitsAllowed) setMinExactCount(int count) setMultiThreaded(boolean multiThreaded) setNeedDocSet(boolean needDocSet) setOffset(int offset) setQuery(org.apache.lucene.search.Query query) voidsetQueryCancellable(boolean isQueryCancellable) voidsetQueryID(String queryID) setSegmentTerminateEarly(boolean segmentSegmentTerminateEarly) setSort(org.apache.lucene.search.Sort sort) setSupersetMaxDoc(int supersetMaxDoc) setTerminateEarly(boolean segmentTerminateEarly) setTimeAllowed(long timeAllowed) boolean
-
Constructor Details
-
QueryCommand
public QueryCommand()
-
-
Method Details
-
getCursorMark
-
setCursorMark
-
getQuery
public org.apache.lucene.search.Query getQuery() -
setQuery
-
getFilterList
-
setFilterList
- Throws:
IllegalArgumentException- if filter is not null.
-
setFilterList
A simple setter to build a filterList from a query- Throws:
IllegalArgumentException- if filter is not null.
-
getFilter
-
setFilter
- Throws:
IllegalArgumentException- if filterList is not null.
-
getSort
public org.apache.lucene.search.Sort getSort() -
setSort
-
getOffset
public int getOffset() -
setOffset
-
getLen
public int getLen() -
setLen
-
getSupersetMaxDoc
public int getSupersetMaxDoc() -
setSupersetMaxDoc
-
getFlags
public int getFlags() -
replaceFlags
-
setFlags
-
clearFlags
-
getMultiThreaded
public boolean getMultiThreaded() -
setMultiThreaded
-
getTimeAllowed
public long getTimeAllowed() -
setTimeAllowed
-
getMinExactCount
public int getMinExactCount() -
setMinExactCount
-
isNeedDocSet
public boolean isNeedDocSet() -
setNeedDocSet
-
getTerminateEarly
public boolean getTerminateEarly() -
shouldEarlyTerminateSearch
public boolean shouldEarlyTerminateSearch() -
setTerminateEarly
-
getSegmentTerminateEarly
public boolean getSegmentTerminateEarly() -
setSegmentTerminateEarly
-
setQueryID
-
getQueryID
-
setQueryCancellable
public void setQueryCancellable(boolean isQueryCancellable) -
isQueryCancellable
public boolean isQueryCancellable() -
setDistribStatsDisabled
public void setDistribStatsDisabled(boolean distribStatsDisabled) -
isDistribStatsDisabled
public boolean isDistribStatsDisabled() -
search
- Throws:
IOException
-
getMaxHitsAllowed
public int getMaxHitsAllowed() -
setMaxHitsAllowed
public void setMaxHitsAllowed(int maxHitsAllowed)
-