php-doc-en/reference/solr/solrdismaxquery/removeboostquery.xml
Yannick Torres 16b2b1ea9a Fix svn keywords
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336552 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-16 13:44:47 +00:00

103 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="solrdismaxquery.removeboostquery" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SolrDisMaxQuery::removeBoostQuery</refname>
<refpurpose>Removes a boost query partial by field name (bq)</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>SolrDisMaxQuery</type><methodname>SolrDisMaxQuery::removeBoostQuery</methodname>
<methodparam><type>string</type><parameter>field</parameter></methodparam>
</methodsynopsis>
<para>
Removes a boost query partial from the existing query, only if <methodname>SolrDisMaxQuery::addBoostQuery</methodname> was used.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>field</parameter></term>
<listitem>
<para>
Field Name
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<type>SolrDisMaxQuery</type>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>SolrDisMaxQuery::removeBoostQuery</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$dismaxQuery = new SolrDisMaxQuery("lucene");
$dismaxQuery
->addBoostQuery('cat', 'electronics', 5.1)
->addBoostQuery('cat', 'hard drive')
;
echo $dismaxQuery.PHP_EOL;
// now remove a query part with field 'cat'
$dismaxQuery
->removeBoostQuery('cat');
echo $dismaxQuery . PHP_EOL;
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
q=lucene&defType=edismax&bq=cat:electronics^5.1 cat:hard drive
q=lucene&defType=edismax&bq=cat:hard drive
]]>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>SolrDisMaxQuery::addBoostQuery</methodname></member>
<member><methodname>SolrDisMaxQuery::setBoostQuery</methodname></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->