Class QueryCommand

java.lang.Object
org.apache.solr.search.QueryCommand

public class 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.
  • Constructor Details

    • QueryCommand

      public QueryCommand()
  • Method Details

    • getCursorMark

      public CursorMark getCursorMark()
    • setCursorMark

      public QueryCommand setCursorMark(CursorMark cursorMark)
    • getQuery

      public org.apache.lucene.search.Query getQuery()
    • setQuery

      public QueryCommand setQuery(org.apache.lucene.search.Query query)
    • getFilterList

      public List<org.apache.lucene.search.Query> getFilterList()
    • setFilterList

      public QueryCommand setFilterList(List<org.apache.lucene.search.Query> filterList)
      Throws:
      IllegalArgumentException - if filter is not null.
    • setFilterList

      public QueryCommand setFilterList(org.apache.lucene.search.Query f)
      A simple setter to build a filterList from a query
      Throws:
      IllegalArgumentException - if filter is not null.
    • getSort

      public org.apache.lucene.search.Sort getSort()
    • setSort

      public QueryCommand setSort(org.apache.lucene.search.Sort sort)
    • getOffset

      public int getOffset()
    • setOffset

      public QueryCommand setOffset(int offset)
    • getLen

      public int getLen()
    • setLen

      public QueryCommand setLen(int len)
    • getSupersetMaxDoc

      public int getSupersetMaxDoc()
    • setSupersetMaxDoc

      public QueryCommand setSupersetMaxDoc(int supersetMaxDoc)
    • getFlags

      public int getFlags()
    • replaceFlags

      public QueryCommand replaceFlags(int flags)
    • setFlags

      public QueryCommand setFlags(int flags)
    • clearFlags

      public QueryCommand clearFlags(int flags)
    • getMultiThreaded

      public boolean getMultiThreaded()
    • setMultiThreaded

      public QueryCommand setMultiThreaded(boolean multiThreaded)
    • getMinExactCount

      public int getMinExactCount()
    • setMinExactCount

      public QueryCommand setMinExactCount(int count)
    • isNeedDocSet

      public boolean isNeedDocSet()
    • setNeedDocSet

      public QueryCommand setNeedDocSet(boolean needDocSet)
    • getTerminateEarly

      public boolean getTerminateEarly()
    • shouldEarlyTerminateSearch

      public boolean shouldEarlyTerminateSearch()
    • setTerminateEarly

      public QueryCommand setTerminateEarly(boolean segmentTerminateEarly)
    • getSegmentTerminateEarly

      public boolean getSegmentTerminateEarly()
    • setSegmentTerminateEarly

      public QueryCommand setSegmentTerminateEarly(boolean segmentSegmentTerminateEarly)
    • setQueryID

      public void setQueryID(String queryID)
    • getQueryID

      public String getQueryID()
    • setQueryCancellable

      public void setQueryCancellable(boolean isQueryCancellable)
    • isQueryCancellable

      public boolean isQueryCancellable()
    • setDistribStatsDisabled

      public void setDistribStatsDisabled(boolean distribStatsDisabled)
    • isDistribStatsDisabled

      public boolean isDistribStatsDisabled()
    • search

      public QueryResult search(SolrIndexSearcher searcher) throws IOException
      Throws:
      IOException
    • getMaxHitsAllowed

      public int getMaxHitsAllowed()
    • setMaxHitsAllowed

      public void setMaxHitsAllowed(int maxHitsAllowed)