<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Orders the documents within the expanded groups (expand.sort parameter)</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrquery.addexpandfilterquery.html">SolrQuery::addExpandFilterQuery</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrquery.addfacetdatefield.html">SolrQuery::addFacetDateField</a></div> <div class="up"><a href="class.solrquery.html">SolrQuery</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="solrquery.addexpandsortfield" class="refentry"> <div class="refnamediv"> <h1 class="refname">SolrQuery::addExpandSortField</h1> <p class="verinfo">(PECL solr >= 2.2.0)</p><p class="refpurpose"><span class="refname">SolrQuery::addExpandSortField</span> — <span class="dc-title">Orders the documents within the expanded groups (expand.sort parameter)</span></p> </div> <div class="refsect1 description" id="refsect1-solrquery.addexpandsortfield-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><a href="class.solrquery.html" class="type SolrQuery">SolrQuery</a></span> <span class="methodname"><strong>SolrQuery::addExpandSortField</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$field</code></span> [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$order</code></span> ] )</div> <p class="para rdfs-comment"> Orders the documents within the expanded groups (expand.sort parameter). </p> </div> <div class="refsect1 parameters" id="refsect1-solrquery.addexpandsortfield-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">field</code></dt> <dd> <p class="para"> field name </p> </dd> <dt> <code class="parameter">order</code></dt> <dd> <p class="para"> Order ASC/DESC, utilizes SolrQuery::ORDER_* constants. </p> <p class="para"> Default: <span class="type"><span class="type SolrQuery::ORDER_DESC">SolrQuery::ORDER_DESC</span></span> </p> </dd> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-solrquery.addexpandsortfield-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> <span class="type"><a href="class.solrquery.html" class="type SolrQuery">SolrQuery</a></span> </p> </div> <div class="refsect1 seealso" id="refsect1-solrquery.addexpandsortfield-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"><span class="methodname"><a href="solrquery.setexpand.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::setExpand()</a> - Enables/Disables the Expand Component</span></li> <li class="member"><span class="methodname"><a href="solrquery.removeexpandsortfield.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::removeExpandSortField()</a> - Removes an expand sort field from the expand.sort parameter</span></li> <li class="member"><span class="methodname"><a href="solrquery.setexpandrows.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::setExpandRows()</a> - Sets the number of rows to display in each group (expand.rows). Server Default 5</span></li> <li class="member"><span class="methodname"><a href="solrquery.setexpandquery.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::setExpandQuery()</a> - Sets the expand.q parameter</span></li> <li class="member"><span class="methodname"><a href="solrquery.addexpandfilterquery.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::addExpandFilterQuery()</a> - Overrides main filter query, determines which documents to include in the main group</span></li> <li class="member"><span class="methodname"><a href="solrquery.removeexpandfilterquery.html" class="methodname" rel="rdfs-seeAlso">SolrQuery::removeExpandFilterQuery()</a> - Removes an expand filter query</span></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrquery.addexpandfilterquery.html">SolrQuery::addExpandFilterQuery</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrquery.addfacetdatefield.html">SolrQuery::addFacetDateField</a></div> <div class="up"><a href="class.solrquery.html">SolrQuery</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>