Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 12665

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!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>Removes phrase bigram field (pf2 parameter)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrdismaxquery.construct.html">SolrDisMaxQuery::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrdismaxquery.removeboostquery.html">SolrDisMaxQuery::removeBoostQuery</a></div>
 <div class="up"><a href="class.solrdismaxquery.html">SolrDisMaxQuery</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="solrdismaxquery.removebigramphrasefield" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SolrDisMaxQuery::removeBigramPhraseField</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">SolrDisMaxQuery::removeBigramPhraseField</span> &mdash; <span class="dc-title">Removes phrase bigram field (pf2 parameter)</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-solrdismaxquery.removebigramphrasefield-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.solrdismaxquery.html" class="type SolrDisMaxQuery">SolrDisMaxQuery</a></span> <span class="methodname"><strong>SolrDisMaxQuery::removeBigramPhraseField</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$field</code></span>
   )</div>

  <p class="para rdfs-comment">
    Removes a Bigram Phrase Field (pf2 parameter) that was previously added using <span class="methodname"><a href="solrdismaxquery.addbigramphrasefield.html" class="methodname">SolrDisMaxQuery::addBigramPhraseField()</a></span>
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-solrdismaxquery.removebigramphrasefield-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">field</code></dt>

    <dd>

     <p class="para">
      The Field Name
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-solrdismaxquery.removebigramphrasefield-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   <span class="type"><a href="class.solrdismaxquery.html" class="type SolrDisMaxQuery">SolrDisMaxQuery</a></span>
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-solrdismaxquery.removebigramphrasefield-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-5899">
   <p><strong>Example #1 <span class="function"><strong>SolrDisMaxQuery::removeBigramPhraseField()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$dismaxQuery&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SolrDisMaxQuery</span><span style="color: #007700">(</span><span style="color: #DD0000">"lucene"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$dismaxQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addBigramPhraseField</span><span style="color: #007700">(</span><span style="color: #DD0000">'cat'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5.1</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;-&gt;</span><span style="color: #0000BB">addBigramPhraseField</span><span style="color: #007700">(</span><span style="color: #DD0000">'feature'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">4.5</span><span style="color: #007700">)<br />;<br />echo&nbsp;</span><span style="color: #0000BB">$dismaxQuery</span><span style="color: #007700">.</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;remove&nbsp;cat&nbsp;from&nbsp;pf2<br /></span><span style="color: #0000BB">$dismaxQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">removeBigramPhraseField</span><span style="color: #007700">(</span><span style="color: #DD0000">'cat'</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">$dismaxQuery</span><span style="color: #007700">.</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output
something similar to:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
q=lucene&amp;defType=edismax&amp;pf2=cat~5.1^2 feature^4.5
q=lucene&amp;defType=edismax&amp;pf2=feature^4.5
</pre></div>
   </div>
  </div>
 </div>



 <div class="refsect1 seealso" id="refsect1-solrdismaxquery.removebigramphrasefield-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="solrdismaxquery.addbigramphrasefield.html" class="methodname" rel="rdfs-seeAlso">SolrDisMaxQuery::addBigramPhraseField()</a> - Adds a Phrase Bigram Field (pf2 parameter)</span></li>
   <li class="member"><span class="methodname"><a href="solrdismaxquery.setbigramphrasefields.html" class="methodname" rel="rdfs-seeAlso">SolrDisMaxQuery::setBigramPhraseFields()</a> - Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter</span></li>
   <li class="member"><span class="methodname"><a href="solrdismaxquery.setbigramphraseslop.html" class="methodname" rel="rdfs-seeAlso">SolrDisMaxQuery::setBigramPhraseSlop()</a> - Sets Bigram Phrase Slop (ps2 parameter)</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrdismaxquery.construct.html">SolrDisMaxQuery::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrdismaxquery.removeboostquery.html">SolrDisMaxQuery::removeBoostQuery</a></div>
 <div class="up"><a href="class.solrdismaxquery.html">SolrDisMaxQuery</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>