• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SolrQuery::setExpandQuery()

    (PECL solr >= 2.2.0)

    Sets the expand.q parameter

    说明

    publicSolrQuery::setExpandQuery(string $q): SolrQuery

    Sets the expand.q parameter.

    Overrides the main q parameter, determines which documents to include in the main group.

    参数

    $q

    返回值

    SolrQuery

    参见

    • SolrQuery::setExpand() Enables/Disables the Expand Component
    • SolrQuery::addExpandSortField() Orders the documents within the expanded groups(expand.sort parameter)
    • SolrQuery::removeExpandSortField() Removes an expand sort field from the expand.sort parameter
    • SolrQuery::setExpandRows() Sets the number of rows to display in each group(expand.rows). Server Default 5
    • SolrQuery::addExpandFilterQuery() Overrides main filter query, determines which documents to include in the main group
    • SolrQuery::removeExpandFilterQuery() Removes an expand filter query