<!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>Sets the index-time boost value for a field</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrinputdocument.setboost.html">SolrInputDocument::setBoost</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrinputdocument.sort.html">SolrInputDocument::sort</a></div> <div class="up"><a href="class.solrinputdocument.html">SolrInputDocument</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="solrinputdocument.setfieldboost" class="refentry"> <div class="refnamediv"> <h1 class="refname">SolrInputDocument::setFieldBoost</h1> <p class="verinfo">(PECL solr >= 0.9.2)</p><p class="refpurpose"><span class="refname">SolrInputDocument::setFieldBoost</span> — <span class="dc-title">Sets the index-time boost value for a field</span></p> </div> <div class="refsect1 description" id="refsect1-solrinputdocument.setfieldboost-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>SolrInputDocument::setFieldBoost</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fieldName</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$fieldBoostValue</code></span> )</div> <p class="para rdfs-comment"> Sets the index-time boost value for a field. This replaces the current boost value for this field. </p> </div> <div class="refsect1 parameters" id="refsect1-solrinputdocument.setfieldboost-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">fieldName</code></em></span> <dd> <p class="para"> The name of the field. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">fieldBoostValue</code></em></span> <dd> <p class="para"> The index time boost value. </p> </dd> </dt> </dl> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="solrinputdocument.setboost.html">SolrInputDocument::setBoost</a></div> <div class="next" style="text-align: right; float: right;"><a href="solrinputdocument.sort.html">SolrInputDocument::sort</a></div> <div class="up"><a href="class.solrinputdocument.html">SolrInputDocument</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>