SolrDisMaxQuery
class SolrDisMaxQuery extends SolrQuery implements Serializable (View source)
(PECL solr >= 2.1.0)
Version not present on php.net documentation, determined here by using PECL solr changelog:
https://pecl.php.net/package-changelog.php?package=solr&release=2.1.0
Class SolrDisMaxQuery
Constants
ORDER_ASC |
|
ORDER_DESC |
|
FACET_SORT_INDEX |
|
FACET_SORT_COUNT |
|
TERMS_SORT_INDEX |
|
TERMS_SORT_COUNT |
|
Methods
(PECL solr >= 0.9.2)
This is an alias for SolrParams::addParam
(PECL solr >= 0.9.2)
Adds a parameter to the object
(PECL solr >= 0.9.2)
This is an alias for SolrParams::getParam
(PECL solr >= 0.9.2)
Returns an array of non URL-encoded parameters
(PECL solr >= 0.9.2)
Returns an array of URL-encoded parameters
(PECL solr >= 0.9.2)
An alias of SolrParams::setParam
(PECL solr >= 0.9.2)
Sets the parameter to the specified value
(PECL solr >= 0.9.2)
Returns all the name-value pair parameters in the object
(PECL solr >= 0.9.2)
Used for custom serialization
(PECL solr >= 2.2.0)
Overrides main filter query, determines which documents to include in the main group.
(PECL solr >= 2.2.0)
Orders the documents within the expanded groups (expand.sort parameter).
(PECL solr >= 0.9.2)
Maps to facet.date
(PECL solr >= 0.9.2)
Adds another facet.date.other parameter
(PECL solr >= 0.9.2)
Adds another field to the facet
(PECL solr >= 0.9.2)
Specifies which fields to return in the result
(PECL solr >= 2.2.0)
Add a field to be used to group results.
(PECL solr >= 2.2.0)
Allows grouping results based on the unique values of a function query (group.func parameter).
(PECL solr >= 2.2.0)
Allows grouping of documents that match the given query.
(PECL solr >= 2.2.0)
Add a group sort field (group.sort parameter).
(PECL solr >= 0.9.2)
Sets a field to use for similarity
(PECL solr >= 0.9.2)
Maps to mlt.qf
(PECL solr >= 0.9.2)
Used to control how the results should be sorted
(PECL solr >= 0.9.2)
Requests a return of sub results for values within the given facet
(PECL solr >= 0.9.2)
Maps to stats.field parameter
(No version information available, might only be in Git)
Collapses the result set to a single document per group
(PECL solr >= 2.2.0)
Returns the expand filter queries
(PECL solr >= 2.2.0)
Returns the expand query expand.q parameter
(PECL solr >= 2.2.0)
Returns The number of rows to display in each group (expand.rows)
(PECL solr >= 0.9.2)
Returns the value for the facet.date.end parameter
(PECL solr >= 0.9.2)
Returns all the facet.date fields
(PECL solr >= 0.9.2)
Returns the value of the facet.date.gap parameter
(PECL solr >= 0.9.2)
Returns the value of the facet.date.hardend parameter
(PECL solr >= 0.9.2)
Returns the value for the facet.date.other parameter
(PECL solr >= 0.9.2)
Returns the lower bound for the first date range for all date faceting on this field
(PECL solr >= 0.9.2)
Returns the maximum number of constraint counts that should be returned for the facet fields
(PECL solr >= 0.9.2)
Returns the value of the facet.method parameter
(PECL solr >= 0.9.2)
Returns the minimum counts for facet fields should be included in the response
(PECL solr >= 0.9.2)
Returns the current state of the facet.missing parameter
(PECL solr >= 0.9.2)
Returns an offset into the list of constraints to be used for pagination
(PECL solr >= 0.9.2)
Returns the facet prefix
(PECL solr >= 0.9.2)
Returns the facet sort type
(PECL solr >= 0.9.2)
Returns the list of fields that will be returned in the response
(PECL solr >= 0.9.2)
Returns an array of filter queries
(PECL solr >= 2.2.0)
Returns true if grouping is enabled
https://secure.php.net/manual/en/solrquery.getgroup.php
(PECL solr >= 2.2.0)
Returns group fields (group.field parameter values)
(PECL solr >= 2.2.0)
Returns group functions (group.func parameter values)
(PECL solr >= 2.2.0)
Returns all the group.query parameter values
(PECL solr >= 0.9.2)
Returns the highlight field to use as backup or default
(PECL solr >= 0.9.2)
Returns all the fields that Solr should generate highlighted snippets for
(PECL solr >= 0.9.2)
Returns the formatter for the highlighted output
(PECL solr >= 0.9.2)
Returns the text snippet generator for highlighted text
(PECL solr >= 0.9.2)
Returns the number of characters of fragments to consider for highlighting
(PECL solr >= 0.9.2)
Returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queries
(PECL solr >= 0.9.2)
Returns the maximum number of characters of the field to return
(PECL solr >= 0.9.2)
Returns the maximum number of characters into a document to look for suitable snippets
(PECL solr >= 0.9.2)
Returns whether or not the collapse contiguous fragments into a single fragment
(PECL solr >= 0.9.2)
Returns the maximum number of characters from a field when using the regex fragmenter
(PECL solr >= 0.9.2)
Returns the regular expression for fragmenting
(PECL solr >= 0.9.2)
Returns the deviation factor from the ideal fragment size
(PECL solr >= 0.9.2)
Returns if a field will only be highlighted if the query matched in this particular field
(PECL solr >= 0.9.2)
Returns the text which appears after a highlighted term
(PECL solr >= 0.9.2)
Returns the text which appears before a highlighted term
(PECL solr >= 0.9.2)
Returns the maximum number of highlighted snippets to generate per field
(PECL solr >= 0.9.2)
Returns the state of the hl.usePhraseHighlighter parameter
(PECL solr >= 0.9.2)
Returns whether or not MoreLikeThis results should be enabled
(PECL solr >= 0.9.2)
Returns whether or not the query will be boosted by the interesting term relevance
(PECL solr >= 0.9.2)
Returns the number of similar documents to return for each result
(PECL solr >= 0.9.2)
Returns all the fields to use for similarity
(PECL solr >= 0.9.2)
Returns the maximum number of query terms that will be included in any generated query
(PECL solr >= 0.9.2)
Returns the maximum number of tokens to parse in each document field that is not stored with TermVector support
(PECL solr >= 0.9.2)
Returns the maximum word length above which words will be ignored
(PECL solr >= 0.9.2)
Returns the threshold frequency at which words will be ignored which do not occur in at least this many docs
(PECL solr >= 0.9.2)
Returns the frequency below which terms will be ignored in the source document
(PECL solr >= 0.9.2)
Returns the minimum word length below which words will be ignored
(PECL solr >= 0.9.2)
Returns the query fields and their boosts
(PECL solr >= 0.9.2)
Returns the offset in the complete result set
(PECL solr >= 0.9.2)
Returns all the stats facets that were set
(PECL solr >= 0.9.2)
Returns whether or not the TermsComponent is enabled
(PECL solr >= 0.9.2)
Returns the field from which the terms are retrieved
(PECL solr >= 0.9.2)
Returns whether or not to include the lower bound in the result set
(PECL solr >= 0.9.2)
Returns whether or not to include the upper bound term in the result set
(PECL solr >= 0.9.2)
Returns the maximum number of terms Solr should return
(PECL solr >= 0.9.2)
Returns the maximum document frequency
(PECL solr >= 0.9.2)
Returns the minimum document frequency to return in order to be included
(PECL solr >= 0.9.2)
Whether or not to return raw characters
(PECL solr >= 0.9.2)
Returns an integer indicating how terms are sorted
(PECL solr >= 0.9.2)
Returns the time in milliseconds allowed for the query to finish
(PECL solr >= 2.2.0)
Removes an expand filter query
(PECL solr >= 2.2.0)
Removes an expand sort field from the expand.sort parameter.
(PECL solr >= 0.9.2)
Removes one of the facet date fields
(PECL solr >= 0.9.2)
Removes one of the facet.date.other parameters
(PECL solr >= 0.9.2)
Removes one of the facet.date parameters
(PECL solr >= 0.9.2)
Removes one of the facet.query parameters
(PECL solr >= 0.9.2)
Removes a field from the list of fields
(PECL solr >= 0.9.2)
Removes one of the fields used for highlighting
(PECL solr >= 0.9.2)
Removes one of the moreLikeThis fields
(PECL solr >= 0.9.2)
Removes one of the moreLikeThis query fields
(PECL solr >= 0.9.2)
Removes one of the sort fields
(PECL solr >= 0.9.2)
Removes one of the stats.facet parameters
(PECL solr >= 0.9.2)
Removes one of the stats.field parameters
(PECL solr >= 0.9.2)
Toggles the echoHandler parameter
(PECL solr >= 0.9.2)
Determines what kind of parameters to include in the response
(PECL solr >= 2.2.0)
Sets the number of rows to display in each group (expand.rows). Server Default 5
(PECL solr >= 0.9.2)
Sets the explainOther common query parameter
(PECL solr >= 0.9.2)
Maps to the facet parameter. Enables or disables facetting
(PECL solr >= 0.9.2)
Maps to facet.date.end
(PECL solr >= 0.9.2)
Maps to facet.date.gap
(PECL solr >= 0.9.2)
Maps to facet.date.hardend
(PECL solr >= 0.9.2)
Maps to facet.date.start
(PECL solr >= 0.9.2)
Sets the minimum document frequency used for determining term count
(PECL solr >= 0.9.2)
Maps to facet.limit
(PECL solr >= 0.9.2)
Specifies the type of algorithm to use when faceting a field
(PECL solr >= 0.9.2)
Maps to facet.mincount
(PECL solr >= 0.9.2)
Maps to facet.missing
(PECL solr >= 0.9.2)
Sets the offset into the list of constraints to allow for pagination
(PECL solr >= 0.9.2)
Specifies a string prefix with which to limits the terms on which to facet
(PECL solr >= 0.9.2)
Determines the ordering of the facet field constraints
(PECL solr >= 2.2.0)
Enable/Disable result grouping (group parameter)
(PECL solr >= 2.2.0)
Enables caching for result grouping
(PECL solr >= 2.2.0)
Sets the group format, result structure (group.format parameter).
(PECL solr >= 2.2.0)
Specifies the number of results to return for each group. The server default value is 1.
(PECL solr >= 2.2.0)
If true, the result of the first field grouping command is used as the main result list in the response, using
group.format=simple.
(PECL solr >= 2.2.0)
If true, Solr includes the number of groups that have matched the query in the results.
(PECL solr >= 2.2.0)
Sets the group.offset parameter.
(PECL solr >= 2.2.0)
If true, facet counts are based on the most relevant document of each group matching the query.
(PECL solr >= 0.9.2)
Enables or disables highlighting
(PECL solr >= 0.9.2)
Specifies the backup field to use
(PECL solr >= 0.9.2)
Specify a formatter for the highlight output
(PECL solr >= 0.9.2)
Sets a text snippet generator for highlighted text
(PECL solr >= 0.9.2)
The size of fragments to consider for highlighting
(PECL solr >= 0.9.2)
Use SpanScorer to highlight phrase terms
(PECL solr >= 0.9.2)
Sets the maximum number of characters of the field to return
(PECL solr >= 0.9.2)
Specifies the number of characters into a document to look for suitable snippets
(PECL solr >= 0.9.2)
Whether or not to collapse contiguous fragments into a single fragment
(PECL solr >= 0.9.2)
Specify the maximum number of characters to analyze
(PECL solr >= 0.9.2)
Specify the regular expression for fragmenting
(PECL solr >= 0.9.2)
Sets the factor by which the regex fragmenter can stray from the ideal fragment size
(PECL solr >= 0.9.2)
Require field matching during highlighting
(PECL solr >= 0.9.2)
Sets the text which appears after a highlighted term
(PECL solr >= 0.9.2)
Sets the text which appears before a highlighted term
(PECL solr >= 0.9.2)
Sets the maximum number of highlighted snippets to generate per field
(PECL solr >= 0.9.2)
Whether to highlight phrase terms only when they appear within the query phrase
(PECL solr >= 0.9.2)
Set if the query will be boosted by the interesting term relevance
(PECL solr >= 0.9.2)
Set the number of similar documents to return for each result
(PECL solr >= 0.9.2)
Sets the maximum number of query terms included
(PECL solr >= 0.9.2)
Specifies the maximum number of tokens to parse
(PECL solr >= 0.9.2)
Sets the maximum word length
(PECL solr >= 0.9.2)
Sets the mltMinDoc frequency
(PECL solr >= 0.9.2)
Sets the frequency below which terms will be ignored in the source docs
(PECL solr >= 0.9.2)
Sets the minimum word length
(PECL solr >= 0.9.2)
Exclude the header from the returned results
(PECL solr >= 0.9.2)
Specifies the maximum number of rows to return in the result
(PECL solr >= 0.9.2)
Flag to show debug information
(PECL solr >= 0.9.2)
Sets the name of the field to get the Terms from
(PECL solr >= 0.9.2)
Include the lower bound term in the result set
(PECL solr >= 0.9.2)
Include the upper bound term in the result set
(PECL solr >= 0.9.2)
Sets the maximum number of terms to return
(PECL solr >= 0.9.2)
Specifies the Term to start from
(PECL solr >= 0.9.2)
Sets the maximum document frequency
(PECL solr >= 0.9.2)
Sets the minimum document frequency
(PECL solr >= 0.9.2)
Restrict matches to terms that start with the prefix
(PECL solr >= 0.9.2)
Return the raw characters of the indexed term
(PECL solr >= 0.9.2)
Specifies how to sort the returned terms
(PECL solr >= 0.9.2)
Sets the term to stop at
(PECL solr >= 0.9.2)
The time allowed for search to finish
(PECL solr >= 2.1.0)
Adds a Phrase Bigram Field (pf2 parameter)
(PECL solr >= 2.1.0)
Adds a boost query field with value and optional boost (bq parameter)
(PECL solr >= 2.1.0)
Adds a Phrase Field (pf parameter)
(PECL solr >= 2.1.0)
Add a query field with optional boost (qf parameter)
(PECL solr >= 2.1.0)
Adds a Trigram Phrase Field (pf3 parameter)
(PECL solr >= 2.1.0)
Adds a field to User Fields Parameter (uf)
(PECL solr >= 2.1.0)
Removes phrase bigram field (pf2 parameter)
(PECL solr >= 2.1.0)
Removes a boost query partial by field name (bq)
(PECL solr >= 2.1.0)
Removes a Phrase Field (pf parameter)
(PECL solr >= 2.1.0)
Removes a Query Field (qf parameter)
(PECL solr >= 2.1.0)
Removes a Trigram Phrase Field (pf3 parameter)
(PECL solr >= 2.1.0)
Removes a field from The User Fields Parameter (uf)
This function is currently not documented; only its argument list is available.
(PECL solr >= 2.1.0)
Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter
(PECL solr >= 2.1.0)
Sets Bigram Phrase Slop (ps2 parameter)
(PECL solr >= 2.1.0)
Sets a Boost Function (bf parameter).
(PECL solr >= 2.1.0)
Directly Sets Boost Query Parameter (bq)
(PECL solr >= 2.1.0)
Set Minimum "Should" Match (mm)
(PECL solr >= 2.1.0)
Sets Phrase Fields and their boosts (and slops) using pf2 parameter
(PECL solr >= 2.1.0)
Sets the default slop on phrase queries (ps parameter)
(PECL solr >= 2.1.0)
Set Query Alternate (q.alt parameter)
(PECL solr >= 2.1.0)
Specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf
parameter)
(PECL solr >= 2.1.0)
Sets Tie Breaker parameter (tie parameter)
(PECL solr >= 2.1.0)
Directly Sets Trigram Phrase Fields (pf3 parameter)
(PECL solr >= 2.1.0)
Sets Trigram Phrase Slop (ps3 parameter)
(PECL solr >= 2.1.0)
Sets User Fields parameter (uf)
(PECL solr >= 2.1.0)
Switch QueryParser to be DisMax Query Parser
(PECL solr >= 2.1.0)
Switch QueryParser to be EDisMax
By default the query builder uses edismax, if it was switched using
SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method.
Details
SolrParams|false
add(string $name, string $value)
(PECL solr >= 0.9.2)
This is an alias for SolrParams::addParam
SolrParams|false
addParam(string $name, string $value)
(PECL solr >= 0.9.2)
Adds a parameter to the object
final mixed
get(string $param_name)
(PECL solr >= 0.9.2)
This is an alias for SolrParams::getParam
final mixed
getParam(string $param_name)
(PECL solr >= 0.9.2)
Returns a parameter value
final array
getParams()
(PECL solr >= 0.9.2)
Returns an array of non URL-encoded parameters
final array
getPreparedParams()
(PECL solr >= 0.9.2)
Returns an array of URL-encoded parameters
final string|null
serialize()
(PECL solr >= 0.9.2)
Used for custom serialization
final SolrParams|false
set(string $name, string $value)
(PECL solr >= 0.9.2)
An alias of SolrParams::setParam
SolrParams|false
setParam(string $name, string $value)
(PECL solr >= 0.9.2)
Sets the parameter to the specified value
final string|false
toString(bool $url_encode = false)
(PECL solr >= 0.9.2)
Returns all the name-value pair parameters in the object
final void
unserialize(string $serialized)
(PECL solr >= 0.9.2)
Used for custom serialization
__construct(string $q = '')
(PECL solr >= 0.9.2)
SolrQuery constructor.
__destruct()
(PECL solr >= 0.9.2)
Destructor
SolrQuery
addExpandFilterQuery(string $fq)
(PECL solr >= 2.2.0)
Overrides main filter query, determines which documents to include in the main group.
SolrQuery
addExpandSortField(string $field, string $order)
(PECL solr >= 2.2.0)
Orders the documents within the expanded groups (expand.sort parameter).
SolrQuery
addFacetDateField(string $dateField)
(PECL solr >= 0.9.2)
Maps to facet.date
SolrQuery
addFacetDateOther(string $value, string $field_override)
(PECL solr >= 0.9.2)
Adds another facet.date.other parameter
SolrQuery
addFacetField(string $field)
(PECL solr >= 0.9.2)
Adds another field to the facet
SolrQuery
addFacetQuery(string $facetQuery)
(PECL solr >= 0.9.2)
Adds a facet query
SolrQuery
addField(string $field)
(PECL solr >= 0.9.2)
Specifies which fields to return in the result
SolrQuery
addFilterQuery(string $fq)
(PECL solr >= 0.9.2)
Specifies a filter query
SolrQuery
addGroupField(string $value)
(PECL solr >= 2.2.0)
Add a field to be used to group results.
SolrQuery
addGroupFunction(string $value)
(PECL solr >= 2.2.0)
Allows grouping results based on the unique values of a function query (group.func parameter).
SolrQuery
addGroupQuery(string $value)
(PECL solr >= 2.2.0)
Allows grouping of documents that match the given query.
SolrQuery
addGroupSortField(string $field, int $order)
(PECL solr >= 2.2.0)
Add a group sort field (group.sort parameter).
SolrQuery
addHighlightField(string $field)
(PECL solr >= 0.9.2)
Maps to hl.fl
SolrQuery
addMltField(string $field)
(PECL solr >= 0.9.2)
Sets a field to use for similarity
SolrQuery
addMltQueryField(string $field, float $boost)
(PECL solr >= 0.9.2)
Maps to mlt.qf
SolrQuery
addSortField(string $field, int $order = SolrQuery::ORDER_DESC)
(PECL solr >= 0.9.2)
Used to control how the results should be sorted
SolrQuery
addStatsFacet(string $field)
(PECL solr >= 0.9.2)
Requests a return of sub results for values within the given facet
SolrQuery
addStatsField(string $field)
(PECL solr >= 0.9.2)
Maps to stats.field parameter
SolrQuery
collapse(SolrCollapseFunction $collapseFunction)
(No version information available, might only be in Git)
Collapses the result set to a single document per group
bool
getExpand()
(PECL solr >= 2.2.0)
Returns true if group expanding is enabled
array
getExpandFilterQueries()
(PECL solr >= 2.2.0)
Returns the expand filter queries
array
getExpandQuery()
(PECL solr >= 2.2.0)
Returns the expand query expand.q parameter
int
getExpandRows()
(PECL solr >= 2.2.0)
Returns The number of rows to display in each group (expand.rows)
array
getExpandSortFields()
(PECL solr >= 2.2.0)
Returns an array of fields
bool|null
getFacet()
(PECL solr >= 0.9.2)
Returns the value of the facet parameter
string|null
getFacetDateEnd(string $field_override)
(PECL solr >= 0.9.2)
Returns the value for the facet.date.end parameter
array|null
getFacetDateFields()
(PECL solr >= 0.9.2)
Returns all the facet.date fields
string|null
getFacetDateGap(string $field_override)
(PECL solr >= 0.9.2)
Returns the value of the facet.date.gap parameter
string|null
getFacetDateHardEnd(string $field_override)
(PECL solr >= 0.9.2)
Returns the value of the facet.date.hardend parameter
array|null
getFacetDateOther(string $field_override)
(PECL solr >= 0.9.2)
Returns the value for the facet.date.other parameter
string|null
getFacetDateStart(string $field_override)
(PECL solr >= 0.9.2)
Returns the lower bound for the first date range for all date faceting on this field
array|null
getFacetFields()
(PECL solr >= 0.9.2)
Returns all the facet fields
int|null
getFacetLimit(string $field_override)
(PECL solr >= 0.9.2)
Returns the maximum number of constraint counts that should be returned for the facet fields
string|null
getFacetMethod(string $field_override)
(PECL solr >= 0.9.2)
Returns the value of the facet.method parameter
int|null
getFacetMinCount(string $field_override)
(PECL solr >= 0.9.2)
Returns the minimum counts for facet fields should be included in the response
string|null
getFacetMissing(string $field_override)
(PECL solr >= 0.9.2)
Returns the current state of the facet.missing parameter
int|null
getFacetOffset(string $field_override)
(PECL solr >= 0.9.2)
Returns an offset into the list of constraints to be used for pagination
string|null
getFacetPrefix(string $field_override)
(PECL solr >= 0.9.2)
Returns the facet prefix
string|null
getFacetQueries()
(PECL solr >= 0.9.2)
Returns all the facet queries
int|null
getFacetSort(string $field_override)
(PECL solr >= 0.9.2)
Returns the facet sort type
string|null
getFields()
(PECL solr >= 0.9.2)
Returns the list of fields that will be returned in the response
string|null
getFilterQueries()
(PECL solr >= 0.9.2)
Returns an array of filter queries
bool
getGroup()
(PECL solr >= 2.2.0)
Returns true if grouping is enabled
https://secure.php.net/manual/en/solrquery.getgroup.php
int
getGroupCachePercent()
(PECL solr >= 2.2.0)
Returns group cache percent value
bool
getGroupFacet()
(PECL solr >= 2.2.0)
Returns the group.facet parameter value
array
getGroupFields()
(PECL solr >= 2.2.0)
Returns group fields (group.field parameter values)
string
getGroupFormat()
(PECL solr >= 2.2.0)
Returns the group.format value
array
getGroupFunctions()
(PECL solr >= 2.2.0)
Returns group functions (group.func parameter values)
int
getGroupLimit()
(PECL solr >= 2.2.0)
Returns the group.limit value
bool
getGroupMain()
(PECL solr >= 2.2.0)
Returns the group.main value
bool
getGroupNGroups()
(PECL solr >= 2.2.0)
Returns the group.ngroups value
bool
getGroupOffset()
(PECL solr >= 2.2.0)
Returns the group.offset value
array
getGroupQueries()
(PECL solr >= 2.2.0)
Returns all the group.query parameter values
array
getGroupSortFields()
(PECL solr >= 2.2.0)
Returns the group.sort value
bool
getGroupTruncate()
(PECL solr >= 2.2.0)
Returns the group.truncate value
bool
getHighlight()
(PECL solr >= 0.9.2)
Returns the state of the hl parameter
string|null
getHighlightAlternateField(string $field_override)
(PECL solr >= 0.9.2)
Returns the highlight field to use as backup or default
array|null
getHighlightFields()
(PECL solr >= 0.9.2)
Returns all the fields that Solr should generate highlighted snippets for
string|null
getHighlightFormatter(string $field_override)
(PECL solr >= 0.9.2)
Returns the formatter for the highlighted output
string|null
getHighlightFragmenter(string $field_override)
(PECL solr >= 0.9.2)
Returns the text snippet generator for highlighted text
int|null
getHighlightFragsize(string $field_override)
(PECL solr >= 0.9.2)
Returns the number of characters of fragments to consider for highlighting
bool|null
getHighlightHighlightMultiTerm()
(PECL solr >= 0.9.2)
Returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queries
int|null
getHighlightMaxAlternateFieldLength(string $field_override)
(PECL solr >= 0.9.2)
Returns the maximum number of characters of the field to return
int|null
getHighlightMaxAnalyzedChars()
(PECL solr >= 0.9.2)
Returns the maximum number of characters into a document to look for suitable snippets
bool|null
getHighlightMergeContiguous(string $field_override)
(PECL solr >= 0.9.2)
Returns whether or not the collapse contiguous fragments into a single fragment
int|null
getHighlightRegexMaxAnalyzedChars()
(PECL solr >= 0.9.2)
Returns the maximum number of characters from a field when using the regex fragmenter
string
getHighlightRegexPattern()
(PECL solr >= 0.9.2)
Returns the regular expression for fragmenting
float|null
getHighlightRegexSlop()
(PECL solr >= 0.9.2)
Returns the deviation factor from the ideal fragment size
bool|null
getHighlightRequireFieldMatch()
(PECL solr >= 0.9.2)
Returns if a field will only be highlighted if the query matched in this particular field
string|null
getHighlightSimplePost(string $field_override)
(PECL solr >= 0.9.2)
Returns the text which appears after a highlighted term
string|null
getHighlightSimplePre(string $field_override)
(PECL solr >= 0.9.2)
Returns the text which appears before a highlighted term
int|null
getHighlightSnippets(string $field_override)
(PECL solr >= 0.9.2)
Returns the maximum number of highlighted snippets to generate per field
bool|null
getHighlightUsePhraseHighlighter()
(PECL solr >= 0.9.2)
Returns the state of the hl.usePhraseHighlighter parameter
bool|null
getMlt()
(PECL solr >= 0.9.2)
Returns whether or not MoreLikeThis results should be enabled
bool|null
getMltBoost()
(PECL solr >= 0.9.2)
Returns whether or not the query will be boosted by the interesting term relevance
int|null
getMltCount()
(PECL solr >= 0.9.2)
Returns the number of similar documents to return for each result
array
getMltFields()
(PECL solr >= 0.9.2)
Returns all the fields to use for similarity
int|null
getMltMaxNumQueryTerms()
(PECL solr >= 0.9.2)
Returns the maximum number of query terms that will be included in any generated query
int
getMltMaxNumTokens()
(PECL solr >= 0.9.2)
Returns the maximum number of tokens to parse in each document field that is not stored with TermVector support
int|null
getMltMaxWordLength()
(PECL solr >= 0.9.2)
Returns the maximum word length above which words will be ignored
int|null
getMltMinDocFrequency()
(PECL solr >= 0.9.2)
Returns the threshold frequency at which words will be ignored which do not occur in at least this many docs
int|null
getMltMinTermFrequency()
(PECL solr >= 0.9.2)
Returns the frequency below which terms will be ignored in the source document
int
getMltMinWordLength()
(PECL solr >= 0.9.2)
Returns the minimum word length below which words will be ignored
array|null
getMltQueryFields()
(PECL solr >= 0.9.2)
Returns the query fields and their boosts
string
getQuery()
(PECL solr >= 0.9.2)
Returns the main query
int|null
getRows()
(PECL solr >= 0.9.2)
Returns the maximum number of documents
array
getSortFields()
(PECL solr >= 0.9.2)
Returns all the sort fields
int|null
getStart()
(PECL solr >= 0.9.2)
Returns the offset in the complete result set
bool|null
getStats()
(PECL solr >= 0.9.2)
Returns whether or not stats is enabled
array|null
getStatsFacets()
(PECL solr >= 0.9.2)
Returns all the stats facets that were set
array|null
getStatsFields()
(PECL solr >= 0.9.2)
Returns all the statistics fields
bool|null
getTerms()
(PECL solr >= 0.9.2)
Returns whether or not the TermsComponent is enabled
string|null
getTermsField()
(PECL solr >= 0.9.2)
Returns the field from which the terms are retrieved
bool|null
getTermsIncludeLowerBound()
(PECL solr >= 0.9.2)
Returns whether or not to include the lower bound in the result set
bool|null
getTermsIncludeUpperBound()
(PECL solr >= 0.9.2)
Returns whether or not to include the upper bound term in the result set
int|null
getTermsLimit()
(PECL solr >= 0.9.2)
Returns the maximum number of terms Solr should return
string|null
getTermsLowerBound()
(PECL solr >= 0.9.2)
Returns the term to start at
int|null
getTermsMaxCount()
(PECL solr >= 0.9.2)
Returns the maximum document frequency
int|null
getTermsMinCount()
(PECL solr >= 0.9.2)
Returns the minimum document frequency to return in order to be included
string|null
getTermsPrefix()
(PECL solr >= 0.9.2)
Returns the term prefix
bool|null
getTermsReturnRaw()
(PECL solr >= 0.9.2)
Whether or not to return raw characters
int|null
getTermsSort()
(PECL solr >= 0.9.2)
Returns an integer indicating how terms are sorted
string|null
getTermsUpperBound()
(PECL solr >= 0.9.2)
Returns the term to stop at
int|null
getTimeAllowed()
(PECL solr >= 0.9.2)
Returns the time in milliseconds allowed for the query to finish
SolrQuery
removeExpandFilterQuery(string $fq)
(PECL solr >= 2.2.0)
Removes an expand filter query
SolrQuery
removeExpandSortField(string $field)
(PECL solr >= 2.2.0)
Removes an expand sort field from the expand.sort parameter.
SolrQuery
removeFacetDateField(string $field)
(PECL solr >= 0.9.2)
Removes one of the facet date fields
SolrQuery
removeFacetDateOther(string $value, string $field_override)
(PECL solr >= 0.9.2)
Removes one of the facet.date.other parameters
SolrQuery
removeFacetField(string $field)
(PECL solr >= 0.9.2)
Removes one of the facet.date parameters
SolrQuery
removeFacetQuery(string $value)
(PECL solr >= 0.9.2)
Removes one of the facet.query parameters
SolrQuery
removeField(string $field)
(PECL solr >= 0.9.2)
Removes a field from the list of fields
SolrQuery
removeFilterQuery(string $fq)
(PECL solr >= 0.9.2)
Removes a filter query
SolrQuery
removeHighlightField(string $field)
(PECL solr >= 0.9.2)
Removes one of the fields used for highlighting
SolrQuery
removeMltField(string $field)
(PECL solr >= 0.9.2)
Removes one of the moreLikeThis fields
SolrQuery
removeMltQueryField(string $queryField)
(PECL solr >= 0.9.2)
Removes one of the moreLikeThis query fields
SolrQuery
removeSortField(string $field)
(PECL solr >= 0.9.2)
Removes one of the sort fields
SolrQuery
removeStatsFacet(string $value)
(PECL solr >= 0.9.2)
Removes one of the stats.facet parameters
SolrQuery
removeStatsField(string $field)
(PECL solr >= 0.9.2)
Removes one of the stats.field parameters
SolrQuery
setEchoHandler(bool $flag)
(PECL solr >= 0.9.2)
Toggles the echoHandler parameter
SolrQuery
setEchoParams(string $type)
(PECL solr >= 0.9.2)
Determines what kind of parameters to include in the response
SolrQuery
setExpand(bool $value)
(PECL solr >= 2.2.0)
Enables/Disables the Expand Component
SolrQuery
setExpandQuery(string $q)
(PECL solr >= 2.2.0)
Sets the expand.q parameter
SolrQuery
setExpandRows(int $value)
(PECL solr >= 2.2.0)
Sets the number of rows to display in each group (expand.rows). Server Default 5
SolrQuery
setExplainOther(string $query)
(PECL solr >= 0.9.2)
Sets the explainOther common query parameter
SolrQuery
setFacet(bool $flag)
(PECL solr >= 0.9.2)
Maps to the facet parameter. Enables or disables facetting
SolrQuery
setFacetDateEnd(string $value, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.date.end
SolrQuery
setFacetDateGap(string $value, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.date.gap
SolrQuery
setFacetDateHardEnd(bool $value, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.date.hardend
SolrQuery
setFacetDateStart(string $value, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.date.start
SolrQuery
setFacetEnumCacheMinDefaultFrequency(int $frequency, string $field_override)
(PECL solr >= 0.9.2)
Sets the minimum document frequency used for determining term count
SolrQuery
setFacetLimit(int $limit, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.limit
SolrQuery
setFacetMethod(string $method, string $field_override)
(PECL solr >= 0.9.2)
Specifies the type of algorithm to use when faceting a field
SolrQuery
setFacetMinCount(int $mincount, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.mincount
SolrQuery
setFacetMissing(bool $flag, string $field_override)
(PECL solr >= 0.9.2)
Maps to facet.missing
SolrQuery
setFacetOffset(int $offset, string $field_override)
(PECL solr >= 0.9.2)
Sets the offset into the list of constraints to allow for pagination
SolrQuery
setFacetPrefix(string $prefix, string $field_override)
(PECL solr >= 0.9.2)
Specifies a string prefix with which to limits the terms on which to facet
SolrQuery
setFacetSort(int $facetSort, string $field_override)
(PECL solr >= 0.9.2)
Determines the ordering of the facet field constraints
SolrQuery
setGroup(bool $value)
(PECL solr >= 2.2.0)
Enable/Disable result grouping (group parameter)
SolrQuery
setGroupCachePercent(int $percent)
(PECL solr >= 2.2.0)
Enables caching for result grouping
SolrQuery
setGroupFacet(bool $value)
(PECL solr >= 2.2.0)
Sets group.facet parameter
SolrQuery
setGroupFormat(string $value)
(PECL solr >= 2.2.0)
Sets the group format, result structure (group.format parameter).
SolrQuery
setGroupLimit(int $value)
(PECL solr >= 2.2.0)
Specifies the number of results to return for each group. The server default value is 1.
SolrQuery
setGroupMain(string $value)
(PECL solr >= 2.2.0)
If true, the result of the first field grouping command is used as the main result list in the response, using
group.format=simple.
SolrQuery
setGroupNGroups(bool $value)
(PECL solr >= 2.2.0)
If true, Solr includes the number of groups that have matched the query in the results.
SolrQuery
setGroupOffset(int $value)
(PECL solr >= 2.2.0)
Sets the group.offset parameter.
SolrQuery
setGroupTruncate(bool $value)
(PECL solr >= 2.2.0)
If true, facet counts are based on the most relevant document of each group matching the query.
SolrQuery
setHighlight(bool $flag)
(PECL solr >= 0.9.2)
Enables or disables highlighting
SolrQuery
setHighlightAlternateField(string $field, string $field_override)
(PECL solr >= 0.9.2)
Specifies the backup field to use
SolrQuery
setHighlightFormatter(string $formatter, string $field_override)
(PECL solr >= 0.9.2)
Specify a formatter for the highlight output
SolrQuery
setHighlightFragmenter(string $fragmenter, string $field_override)
(PECL solr >= 0.9.2)
Sets a text snippet generator for highlighted text
SolrQuery
setHighlightFragsize(int $size, string $field_override)
(PECL solr >= 0.9.2)
The size of fragments to consider for highlighting
SolrQuery
setHighlightHighlightMultiTerm(bool $flag)
(PECL solr >= 0.9.2)
Use SpanScorer to highlight phrase terms
SolrQuery
setHighlightMaxAlternateFieldLength(int $fieldLength, string $field_override)
(PECL solr >= 0.9.2)
Sets the maximum number of characters of the field to return
SolrQuery
setHighlightMaxAnalyzedChars(int $value)
(PECL solr >= 0.9.2)
Specifies the number of characters into a document to look for suitable snippets
SolrQuery
setHighlightMergeContiguous(bool $flag, string $field_override)
(PECL solr >= 0.9.2)
Whether or not to collapse contiguous fragments into a single fragment
SolrQuery
setHighlightRegexMaxAnalyzedChars(int $maxAnalyzedChars)
(PECL solr >= 0.9.2)
Specify the maximum number of characters to analyze
SolrQuery
setHighlightRegexPattern(string $value)
(PECL solr >= 0.9.2)
Specify the regular expression for fragmenting
SolrQuery
setHighlightRegexSlop(float $factor)
(PECL solr >= 0.9.2)
Sets the factor by which the regex fragmenter can stray from the ideal fragment size
SolrQuery
setHighlightRequireFieldMatch(bool $flag)
(PECL solr >= 0.9.2)
Require field matching during highlighting
SolrQuery
setHighlightSimplePost(string $simplePost, string $field_override)
(PECL solr >= 0.9.2)
Sets the text which appears after a highlighted term
SolrQuery
setHighlightSimplePre(string $simplePre, string $field_override)
(PECL solr >= 0.9.2)
Sets the text which appears before a highlighted term
SolrQuery
setHighlightSnippets(int $value, string $field_override)
(PECL solr >= 0.9.2)
Sets the maximum number of highlighted snippets to generate per field
SolrQuery
setHighlightUsePhraseHighlighter(bool $flag)
(PECL solr >= 0.9.2)
Whether to highlight phrase terms only when they appear within the query phrase
SolrQuery
setMlt(bool $flag)
(PECL solr >= 0.9.2)
Enables or disables moreLikeThis
SolrQuery
setMltBoost(bool $flag)
(PECL solr >= 0.9.2)
Set if the query will be boosted by the interesting term relevance
SolrQuery
setMltCount(int $count)
(PECL solr >= 0.9.2)
Set the number of similar documents to return for each result
SolrQuery
setMltMaxNumQueryTerms(int $value)
(PECL solr >= 0.9.2)
Sets the maximum number of query terms included
SolrQuery
setMltMaxNumTokens(int $value)
(PECL solr >= 0.9.2)
Specifies the maximum number of tokens to parse
SolrQuery
setMltMaxWordLength(int $maxWordLength)
(PECL solr >= 0.9.2)
Sets the maximum word length
SolrQuery
setMltMinDocFrequency(int $minDocFrequency)
(PECL solr >= 0.9.2)
Sets the mltMinDoc frequency
SolrQuery
setMltMinTermFrequency(int $minTermFrequency)
(PECL solr >= 0.9.2)
Sets the frequency below which terms will be ignored in the source docs
SolrQuery
setMltMinWordLength(int $minWordLength)
(PECL solr >= 0.9.2)
Sets the minimum word length
SolrQuery
setOmitHeader(bool $flag)
(PECL solr >= 0.9.2)
Exclude the header from the returned results
SolrQuery
setQuery(string $query)
(PECL solr >= 0.9.2)
Sets the search query
SolrQuery
setRows(int $rows)
(PECL solr >= 0.9.2)
Specifies the maximum number of rows to return in the result
SolrQuery
setShowDebugInfo(bool $flag)
(PECL solr >= 0.9.2)
Flag to show debug information
SolrQuery
setStart(int $start)
(PECL solr >= 0.9.2)
Specifies the number of rows to skip
SolrQuery
setStats(bool $flag)
(PECL solr >= 0.9.2)
Enables or disables the Stats component
SolrQuery
setTerms(bool $flag)
(PECL solr >= 0.9.2)
Enables or disables the TermsComponent
SolrQuery
setTermsField(string $fieldname)
(PECL solr >= 0.9.2)
Sets the name of the field to get the Terms from
SolrQuery
setTermsIncludeLowerBound(bool $flag)
(PECL solr >= 0.9.2)
Include the lower bound term in the result set
SolrQuery
setTermsIncludeUpperBound(bool $flag)
(PECL solr >= 0.9.2)
Include the upper bound term in the result set
SolrQuery
setTermsLimit(int $limit)
(PECL solr >= 0.9.2)
Sets the maximum number of terms to return
SolrQuery
setTermsLowerBound(string $lowerBound)
(PECL solr >= 0.9.2)
Specifies the Term to start from
SolrQuery
setTermsMaxCount(int $frequency)
(PECL solr >= 0.9.2)
Sets the maximum document frequency
SolrQuery
setTermsMinCount(int $frequency)
(PECL solr >= 0.9.2)
Sets the minimum document frequency
SolrQuery
setTermsPrefix(string $prefix)
(PECL solr >= 0.9.2)
Restrict matches to terms that start with the prefix
SolrQuery
setTermsReturnRaw(bool $flag)
(PECL solr >= 0.9.2)
Return the raw characters of the indexed term
SolrQuery
setTermsSort(int $sortType)
(PECL solr >= 0.9.2)
Specifies how to sort the returned terms
SolrQuery
setTermsUpperBound(string $upperBound)
(PECL solr >= 0.9.2)
Sets the term to stop at
SolrQuery
setTimeAllowed(int $timeAllowed)
(PECL solr >= 0.9.2)
The time allowed for search to finish
SolrDisMaxQuery
addBigramPhraseField(string $field, string $boost, string $slop)
(PECL solr >= 2.1.0)
Adds a Phrase Bigram Field (pf2 parameter)
SolrDisMaxQuery
addBoostQuery(string $field, string $value, string $boost)
(PECL solr >= 2.1.0)
Adds a boost query field with value and optional boost (bq parameter)
SolrDisMaxQuery
addPhraseField(string $field, string $boost, string $slop)
(PECL solr >= 2.1.0)
Adds a Phrase Field (pf parameter)
SolrDisMaxQuery
addQueryField(string $field, string $boost)
(PECL solr >= 2.1.0)
Add a query field with optional boost (qf parameter)
SolrDisMaxQuery
addTrigramPhraseField(string $field, string $boost, string $slop)
(PECL solr >= 2.1.0)
Adds a Trigram Phrase Field (pf3 parameter)
SolrDisMaxQuery
addUserField(string $field)
(PECL solr >= 2.1.0)
Adds a field to User Fields Parameter (uf)
SolrDisMaxQuery
removeBigramPhraseField(string $field)
(PECL solr >= 2.1.0)
Removes phrase bigram field (pf2 parameter)
SolrDisMaxQuery
removeBoostQuery(string $field)
(PECL solr >= 2.1.0)
Removes a boost query partial by field name (bq)
SolrDisMaxQuery
removePhraseField(string $field)
(PECL solr >= 2.1.0)
Removes a Phrase Field (pf parameter)
SolrDisMaxQuery
removeQueryField(string $field)
(PECL solr >= 2.1.0)
Removes a Query Field (qf parameter)
SolrDisMaxQuery
removeTrigramPhraseField(string $field)
(PECL solr >= 2.1.0)
Removes a Trigram Phrase Field (pf3 parameter)
SolrDisMaxQuery
removeUserField(string $field)
(PECL solr >= 2.1.0)
Removes a field from The User Fields Parameter (uf)
This function is currently not documented; only its argument list is available.
SolrDisMaxQuery
setBigramPhraseFields(string $fields)
(PECL solr >= 2.1.0)
Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter
SolrDisMaxQuery
setBigramPhraseSlop(string $slop)
(PECL solr >= 2.1.0)
Sets Bigram Phrase Slop (ps2 parameter)
SolrDisMaxQuery
setBoostFunction(string $function)
(PECL solr >= 2.1.0)
Sets a Boost Function (bf parameter).
SolrDisMaxQuery
setBoostQuery(string $q)
(PECL solr >= 2.1.0)
Directly Sets Boost Query Parameter (bq)
SolrDisMaxQuery
setMinimumMatch(string $value)
(PECL solr >= 2.1.0)
Set Minimum "Should" Match (mm)
SolrDisMaxQuery
setPhraseFields(string $fields)
(PECL solr >= 2.1.0)
Sets Phrase Fields and their boosts (and slops) using pf2 parameter
SolrDisMaxQuery
setPhraseSlop(string $slop)
(PECL solr >= 2.1.0)
Sets the default slop on phrase queries (ps parameter)
SolrDisMaxQuery
setQueryAlt(string $q)
(PECL solr >= 2.1.0)
Set Query Alternate (q.alt parameter)
SolrDisMaxQuery
setQueryPhraseSlop(string $slop)
(PECL solr >= 2.1.0)
Specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf
parameter)
SolrDisMaxQuery
setTieBreaker(string $tieBreaker)
(PECL solr >= 2.1.0)
Sets Tie Breaker parameter (tie parameter)
SolrDisMaxQuery
setTrigramPhraseFields(string $fields)
(PECL solr >= 2.1.0)
Directly Sets Trigram Phrase Fields (pf3 parameter)
SolrDisMaxQuery
setTrigramPhraseSlop(string $slop)
(PECL solr >= 2.1.0)
Sets Trigram Phrase Slop (ps3 parameter)
SolrDisMaxQuery
setUserFields(string $fields)
(PECL solr >= 2.1.0)
Sets User Fields parameter (uf)
SolrDisMaxQuery
useDisMaxQueryParser()
(PECL solr >= 2.1.0)
Switch QueryParser to be DisMax Query Parser
SolrDisMaxQuery
useEDisMaxQueryParser()
(PECL solr >= 2.1.0)
Switch QueryParser to be EDisMax
By default the query builder uses edismax, if it was switched using
SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method.