|
The SolrQuery classIntroductionRepresents a collection of name-value pairs sent to the Solr server during a request. Class synopsisSolrQuery
class SolrQuery
extends
SolrModifiableParams
implements
Serializable {
/* Constants */
const
int
SolrQuery::ORDER_ASC = 0;
const
int
SolrQuery::ORDER_DESC = 1;
const
int
SolrQuery::FACET_SORT_INDEX = 0;
const
int
SolrQuery::FACET_SORT_COUNT = 1;
const
int
SolrQuery::TERMS_SORT_INDEX = 0;
const
int
SolrQuery::TERMS_SORT_COUNT = 1;
/* Properties */
/* Methods */
public __construct(string
$q = ?)public SolrQuery addExpandFilterQuery(string
$fq )public SolrQuery addExpandSortField(string
$field , string $order = ?)public SolrQuery addFacetDateField(string
$dateField )public SolrQuery addFacetDateOther(string
$value , string $field_override = ?)public SolrQuery addFacetField(string
$field )public SolrQuery addFacetQuery(string
$facetQuery )public SolrQuery addField(string
$field )public SolrQuery addFilterQuery(string
$fq )public SolrQuery addGroupField(string
$value )public SolrQuery addGroupFunction(string
$value )public SolrQuery addGroupQuery(string
$value )public SolrQuery addGroupSortField(string
$field , int $order = ?)public SolrQuery addHighlightField(string
$field )public SolrQuery addMltField(string
$field )public SolrQuery addMltQueryField(string
$field , float $boost )public SolrQuery addSortField(string
$field , int $order = SolrQuery::ORDER_DESC)public SolrQuery addStatsFacet(string
$field )public SolrQuery addStatsField(string
$field )public SolrQuery collapse(SolrCollapseFunction
$collapseFunction )public bool getExpand()
public array getExpandFilterQueries()
public array getExpandQuery()
public int getExpandRows()
public array getExpandSortFields()
public bool getFacet()
public string getFacetDateEnd(string
$field_override = ?)public array getFacetDateFields()
public string getFacetDateGap(string
$field_override = ?)public string getFacetDateHardEnd(string
$field_override = ?)public array getFacetDateOther(string
$field_override = ?)public string getFacetDateStart(string
$field_override = ?)public array getFacetFields()
public int getFacetLimit(string
$field_override = ?)public string getFacetMethod(string
$field_override = ?)public int getFacetMinCount(string
$field_override = ?)public bool getFacetMissing(string
$field_override = ?)public int getFacetOffset(string
$field_override = ?)public string getFacetPrefix(string
$field_override = ?)public array getFacetQueries()
public int getFacetSort(string
$field_override = ?)public array getFields()
public array getFilterQueries()
public bool getGroup()
public int getGroupCachePercent()
public bool getGroupFacet()
public array getGroupFields()
public string getGroupFormat()
public array getGroupFunctions()
public int getGroupLimit()
public bool getGroupMain()
public bool getGroupNGroups()
public int getGroupOffset()
public array getGroupQueries()
public array getGroupSortFields()
public bool getGroupTruncate()
public bool getHighlight()
public string getHighlightAlternateField(string
$field_override = ?)public array getHighlightFields()
public string getHighlightFormatter(string
$field_override = ?)public string getHighlightFragmenter(string
$field_override = ?)public int getHighlightFragsize(string
$field_override = ?)public bool getHighlightHighlightMultiTerm()
public int getHighlightMaxAlternateFieldLength(string
$field_override = ?)public int getHighlightMaxAnalyzedChars()
public bool getHighlightMergeContiguous(string
$field_override = ?)public string getHighlightQuery()
public int getHighlightRegexMaxAnalyzedChars()
public string getHighlightRegexPattern()
public float getHighlightRegexSlop()
public bool getHighlightRequireFieldMatch()
public string getHighlightSimplePost(string
$field_override = ?)public string getHighlightSimplePre(string
$field_override = ?)public int getHighlightSnippets(string
$field_override = ?)public bool getHighlightUsePhraseHighlighter()
public bool getMlt()
public bool getMltBoost()
public int getMltCount()
public array getMltFields()
public int getMltMaxNumQueryTerms()
public int getMltMaxNumTokens()
public int getMltMaxWordLength()
public int getMltMinDocFrequency()
public int getMltMinTermFrequency()
public int getMltMinWordLength()
public array getMltQueryFields()
public string getQuery()
public int getRows()
public array getSortFields()
public int getStart()
public bool getStats()
public array getStatsFacets()
public array getStatsFields()
public bool getTerms()
public string getTermsField()
public bool getTermsIncludeLowerBound()
public bool getTermsIncludeUpperBound()
public int getTermsLimit()
public string getTermsLowerBound()
public int getTermsMaxCount()
public int getTermsMinCount()
public string getTermsPrefix()
public bool getTermsReturnRaw()
public int getTermsSort()
public string getTermsUpperBound()
public int getTimeAllowed()
public SolrQuery removeExpandFilterQuery(string
$fq )public SolrQuery removeExpandSortField(string
$field )public SolrQuery removeFacetDateField(string
$field )public SolrQuery removeFacetDateOther(string
$value , string $field_override = ?)public SolrQuery removeFacetField(string
$field )public SolrQuery removeFacetQuery(string
$value )public SolrQuery removeField(string
$field )public SolrQuery removeFilterQuery(string
$fq )public SolrQuery removeHighlightField(string
$field )public SolrQuery removeMltField(string
$field )public SolrQuery removeMltQueryField(string
$queryField )public SolrQuery removeSortField(string
$field )public SolrQuery removeStatsFacet(string
$value )public SolrQuery removeStatsField(string
$field )public SolrQuery setEchoHandler(bool
$flag )public SolrQuery setEchoParams(string
$type )public SolrQuery setExpand(bool
$value )public SolrQuery setExpandQuery(string
$q )public SolrQuery setExpandRows(int
$value )public SolrQuery setExplainOther(string
$query )public SolrQuery setFacet(bool
$flag )public SolrQuery setFacetDateEnd(string
$value , string $field_override = ?)public SolrQuery setFacetDateGap(string
$value , string $field_override = ?)public SolrQuery setFacetDateHardEnd(bool
$value , string $field_override = ?)public SolrQuery setFacetDateStart(string
$value , string $field_override = ?)public SolrQuery setFacetEnumCacheMinDefaultFrequency(int
$frequency , string $field_override = ?)public SolrQuery setFacetLimit(int
$limit , string $field_override = ?)public SolrQuery setFacetMethod(string
$method , string $field_override = ?)public SolrQuery setFacetMinCount(int
$mincount , string $field_override = ?)public SolrQuery setFacetMissing(bool
$flag , string $field_override = ?)public SolrQuery setFacetOffset(int
$offset , string $field_override = ?)public SolrQuery setFacetPrefix(string
$prefix , string $field_override = ?)public SolrQuery setFacetSort(int
$facetSort , string $field_override = ?)public SolrQuery setGroup(bool
$value )public SolrQuery setGroupCachePercent(int
$percent )public SolrQuery setGroupFacet(bool
$value )public SolrQuery setGroupFormat(string
$value )public SolrQuery setGroupLimit(int
$value )public SolrQuery setGroupMain(string
$value )public SolrQuery setGroupNGroups(bool
$value )public SolrQuery setGroupOffset(int
$value )public SolrQuery setGroupTruncate(bool
$value )public SolrQuery setHighlight(bool
$flag )public SolrQuery setHighlightAlternateField(string
$field , string $field_override = ?)public SolrQuery setHighlightFormatter(string
$formatter , string $field_override = ?)public SolrQuery setHighlightFragmenter(string
$fragmenter , string $field_override = ?)public SolrQuery setHighlightFragsize(int
$size , string $field_override = ?)public SolrQuery setHighlightHighlightMultiTerm(bool
$flag )public SolrQuery setHighlightMaxAlternateFieldLength(int
$fieldLength , string $field_override = ?)public SolrQuery setHighlightMaxAnalyzedChars(int
$value )public SolrQuery setHighlightMergeContiguous(bool
$flag , string $field_override = ?)public SolrQuery setHighlightQuery(string
$q )public SolrQuery setHighlightRegexMaxAnalyzedChars(int
$maxAnalyzedChars )public SolrQuery setHighlightRegexPattern(string
$value )public SolrQuery setHighlightRegexSlop(float
$factor )public SolrQuery setHighlightRequireFieldMatch(bool
$flag )public SolrQuery setHighlightSimplePost(string
$simplePost , string $field_override = ?)public SolrQuery setHighlightSimplePre(string
$simplePre , string $field_override = ?)public SolrQuery setHighlightSnippets(int
$value , string $field_override = ?)public SolrQuery setHighlightUsePhraseHighlighter(bool
$flag )public SolrQuery setMlt(bool
$flag )public SolrQuery setMltBoost(bool
$flag )public SolrQuery setMltCount(int
$count )public SolrQuery setMltMaxNumQueryTerms(int
$value )public SolrQuery setMltMaxNumTokens(int
$value )public SolrQuery setMltMaxWordLength(int
$maxWordLength )public SolrQuery setMltMinDocFrequency(int
$minDocFrequency )public SolrQuery setMltMinTermFrequency(int
$minTermFrequency )public SolrQuery setMltMinWordLength(int
$minWordLength )public SolrQuery setOmitHeader(bool
$flag )public SolrQuery setQuery(string
$query )public SolrQuery setRows(int
$rows )public SolrQuery setShowDebugInfo(bool
$flag )public SolrQuery setStart(int
$start )public SolrQuery setStats(bool
$flag )public SolrQuery setTerms(bool
$flag )public SolrQuery setTermsField(string
$fieldname )public SolrQuery setTermsIncludeLowerBound(bool
$flag )public SolrQuery setTermsIncludeUpperBound(bool
$flag )public SolrQuery setTermsLimit(int
$limit )public SolrQuery setTermsLowerBound(string
$lowerBound )public SolrQuery setTermsMaxCount(int
$frequency )public SolrQuery setTermsMinCount(int
$frequency )public SolrQuery setTermsPrefix(string
$prefix )public SolrQuery setTermsReturnRaw(bool
$flag )public SolrQuery setTermsSort(int
$sortType )public SolrQuery setTermsUpperBound(string
$upperBound )public SolrQuery setTimeAllowed(int
$timeAllowed )public __destruct()
/* Inherited methods */
public SolrModifiableParams::__construct()
public SolrModifiableParams::__destruct()
}Predefined Constants
|