blob: 781e03d674fb472d750744109aa56c3b4db9ff18 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Lucene.Net: Lucene.Net.Search.DisjunctionMaxQuery Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="lucene-net-icon-128x128.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Lucene.Net
&#160;<span id="projectnumber">3.0.3</span>
</div>
<div id="projectbrief">Lucene.Net is a .NET port of the Java Lucene Indexing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="Index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_lucene.html">Lucene</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net.html">Net</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net_1_1_search.html">Search</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html">DisjunctionMaxQuery</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Search.DisjunctionMaxQuery Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries. This is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a single search field). We want the primary score to be the one associated with the highest boost, not the sum of the field scores (as <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a> would give). If the query is "albino elephant" this ensures that "albino" matching one field and "elephant" matching another gets a higher score than "albino" matching both fields. To get this result, use both <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a> and <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>: for each term a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a> searches for it in each field, while the set of these <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>'s is combined into a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a>. The tie breaker capability allows results that include the same term in multiple fields to be judged better than results that include this term in only the best of those multiple fields, without confusing this with the better case of two different terms in the multiple fields.
<a href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#details">More...</a></p>
<p>Inherits <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Lucene.Net.Search.Query</a>, IEnumerable&lt; Query &gt;, and ICloneable.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><b>DisjunctionMaxWeight</b></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html" title="Expert: Calculate query weights and build query scorers. The purpose of Weight is to ensure searching...">Weight</a> for <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>, used to normalize, score and explain these queries. <br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abec95b53861d950ce18a91107758447e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#abec95b53861d950ce18a91107758447e">DisjunctionMaxQuery</a> (float tieBreakerMultiplier)</td></tr>
<tr class="memdesc:abec95b53861d950ce18a91107758447e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new empty <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>. Use add() to add the subqueries. <a href="#abec95b53861d950ce18a91107758447e"></a><br/></td></tr>
<tr class="separator:abec95b53861d950ce18a91107758447e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acabb2b7d33e1fd719364758455ac3a5b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#acabb2b7d33e1fd719364758455ac3a5b">DisjunctionMaxQuery</a> (System.Collections.Generic.ICollection&lt; <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> &gt; disjuncts, float tieBreakerMultiplier)</td></tr>
<tr class="memdesc:acabb2b7d33e1fd719364758455ac3a5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a> <a href="#acabb2b7d33e1fd719364758455ac3a5b"></a><br/></td></tr>
<tr class="separator:acabb2b7d33e1fd719364758455ac3a5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8cac125c73e1e587980823c44099915"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#ab8cac125c73e1e587980823c44099915">Add</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> query)</td></tr>
<tr class="memdesc:ab8cac125c73e1e587980823c44099915"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a subquery to this disjunction <a href="#ab8cac125c73e1e587980823c44099915"></a><br/></td></tr>
<tr class="separator:ab8cac125c73e1e587980823c44099915"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fccd48f58c144be71c19386f131d646"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a8fccd48f58c144be71c19386f131d646">Add</a> (System.Collections.Generic.ICollection&lt; <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> &gt; disjuncts)</td></tr>
<tr class="memdesc:a8fccd48f58c144be71c19386f131d646"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a collection of disjuncts to this disjunction via Iterable <a href="#a8fccd48f58c144be71c19386f131d646"></a><br/></td></tr>
<tr class="separator:a8fccd48f58c144be71c19386f131d646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b25ca9bf9a0134cda4e86b76d2e5b56"><td class="memItemLeft" align="right" valign="top">virtual <br class="typebreak"/>
System.Collections.Generic.IEnumerator<br class="typebreak"/>
&lt; <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a6b25ca9bf9a0134cda4e86b76d2e5b56">GetEnumerator</a> ()</td></tr>
<tr class="memdesc:a6b25ca9bf9a0134cda4e86b76d2e5b56"><td class="mdescLeft">&#160;</td><td class="mdescRight">An Iterator&lt;<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html" title="The abstract base class for queries. Instantiable subclasses are: TermQuery MultiTermQuery BooleanQ...">Query</a>&gt; over the disjuncts <a href="#a6b25ca9bf9a0134cda4e86b76d2e5b56"></a><br/></td></tr>
<tr class="separator:a6b25ca9bf9a0134cda4e86b76d2e5b56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fecad6fada921b8abbf77884015115b"><td class="memItemLeft" align="right" valign="top">override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html">Weight</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a8fecad6fada921b8abbf77884015115b">CreateWeight</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html">Searcher</a> searcher)</td></tr>
<tr class="memdesc:a8fecad6fada921b8abbf77884015115b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: Constructs an appropriate <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html" title="Expert: Calculate query weights and build query scorers. The purpose of Weight is to ensure searching...">Weight</a> implementation for this query. <a href="#a8fecad6fada921b8abbf77884015115b"></a><br/></td></tr>
<tr class="separator:a8fecad6fada921b8abbf77884015115b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd0ddda11e9b55bf0c996f5837ef2d9b"><td class="memItemLeft" align="right" valign="top">override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#abd0ddda11e9b55bf0c996f5837ef2d9b">Rewrite</a> (<a class="el" href="class_lucene_1_1_net_1_1_index_1_1_index_reader.html">IndexReader</a> reader)</td></tr>
<tr class="memdesc:abd0ddda11e9b55bf0c996f5837ef2d9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Optimize our representation and our subqueries representations <a href="#abd0ddda11e9b55bf0c996f5837ef2d9b"></a><br/></td></tr>
<tr class="separator:abd0ddda11e9b55bf0c996f5837ef2d9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff39d445954777843927a8ec4ff5449"><td class="memItemLeft" align="right" valign="top">override System.Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a0ff39d445954777843927a8ec4ff5449">Clone</a> ()</td></tr>
<tr class="memdesc:a0ff39d445954777843927a8ec4ff5449"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a shallow copy of us &ndash; used in rewriting if necessary <a href="#a0ff39d445954777843927a8ec4ff5449"></a><br/></td></tr>
<tr class="separator:a0ff39d445954777843927a8ec4ff5449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9abd0b24d5a8a92b33feeb053ff8a7fd"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a9abd0b24d5a8a92b33feeb053ff8a7fd">ExtractTerms</a> (System.Collections.Generic.ISet&lt; <a class="el" href="class_lucene_1_1_net_1_1_index_1_1_term.html">Term</a> &gt; terms)</td></tr>
<tr class="memdesc:a9abd0b24d5a8a92b33feeb053ff8a7fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#abd0ddda11e9b55bf0c996f5837ef2d9b">rewritten</a> form. <a href="#a9abd0b24d5a8a92b33feeb053ff8a7fd"></a><br/></td></tr>
<tr class="separator:a9abd0b24d5a8a92b33feeb053ff8a7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07519542379fdbe31b136b5a8c810b1"><td class="memItemLeft" align="right" valign="top">override System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#ac07519542379fdbe31b136b5a8c810b1">ToString</a> (System.String field)</td></tr>
<tr class="memdesc:ac07519542379fdbe31b136b5a8c810b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prettyprint us. <a href="#ac07519542379fdbe31b136b5a8c810b1"></a><br/></td></tr>
<tr class="separator:ac07519542379fdbe31b136b5a8c810b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a2a59a4851fc45bf52631d0b37730c7"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a5a2a59a4851fc45bf52631d0b37730c7">Equals</a> (System.Object o)</td></tr>
<tr class="memdesc:a5a2a59a4851fc45bf52631d0b37730c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true iff we represent the same query as o <a href="#a5a2a59a4851fc45bf52631d0b37730c7"></a><br/></td></tr>
<tr class="separator:a5a2a59a4851fc45bf52631d0b37730c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84ca406eb8a42a9c239d1f23032a245d"><td class="memItemLeft" align="right" valign="top">override int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#a84ca406eb8a42a9c239d1f23032a245d">GetHashCode</a> ()</td></tr>
<tr class="memdesc:a84ca406eb8a42a9c239d1f23032a245d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a hash code for hashing us <a href="#a84ca406eb8a42a9c239d1f23032a245d"></a><br/></td></tr>
<tr class="separator:a84ca406eb8a42a9c239d1f23032a245d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_lucene_1_1_net_1_1_search_1_1_query')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Lucene.Net.Search.Query</a></td></tr>
<tr class="memitem:a1e815cb670dec850ff74001b507fdf77 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">override System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a1e815cb670dec850ff74001b507fdf77">ToString</a> ()</td></tr>
<tr class="memdesc:a1e815cb670dec850ff74001b507fdf77 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints a query to a string. <a href="#a1e815cb670dec850ff74001b507fdf77"></a><br/></td></tr>
<tr class="separator:a1e815cb670dec850ff74001b507fdf77 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a723b98d56f3442fa67eba0d4c92b943c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html">Weight</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a723b98d56f3442fa67eba0d4c92b943c">Weight</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html">Searcher</a> searcher)</td></tr>
<tr class="memdesc:a723b98d56f3442fa67eba0d4c92b943c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: Constructs and initializes a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html" title="Expert: Calculate query weights and build query scorers. The purpose of Weight is to ensure searching...">Weight</a> for a top-level query. <a href="#a723b98d56f3442fa67eba0d4c92b943c"></a><br/></td></tr>
<tr class="separator:a723b98d56f3442fa67eba0d4c92b943c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75af5b3a52be8d47449c807bade97838 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a75af5b3a52be8d47449c807bade97838">Combine</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>[] queries)</td></tr>
<tr class="memdesc:a75af5b3a52be8d47449c807bade97838 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: called when re-writing queries under <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_multi_searcher.html" title="Implements search over a set of Searchables.">MultiSearcher</a>. <a href="#a75af5b3a52be8d47449c807bade97838"></a><br/></td></tr>
<tr class="separator:a75af5b3a52be8d47449c807bade97838 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61ccd3cc51e811a537f7929e98302fd3 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_similarity.html">Similarity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a61ccd3cc51e811a537f7929e98302fd3">GetSimilarity</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html">Searcher</a> searcher)</td></tr>
<tr class="memdesc:a61ccd3cc51e811a537f7929e98302fd3 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: Returns the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_similarity.html" title="Expert: Scoring API. Subclasses implement search scoring.">Similarity</a> implementation to be used for this query. Subclasses may override this method to specify their own <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_similarity.html" title="Expert: Scoring API. Subclasses implement search scoring.">Similarity</a> implementation, perhaps one that delegates through that of the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html" title="An abstract base class for search implementations. Implements the main search methods.">Searcher</a>. By default the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html" title="An abstract base class for search implementations. Implements the main search methods.">Searcher</a>'s <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_similarity.html" title="Expert: Scoring API. Subclasses implement search scoring.">Similarity</a> implementation is returned. <a href="#a61ccd3cc51e811a537f7929e98302fd3"></a><br/></td></tr>
<tr class="separator:a61ccd3cc51e811a537f7929e98302fd3 inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a1966528d60f0f34294a4b1458dab1c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">override int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a4a1966528d60f0f34294a4b1458dab1c">GetHashCode</a> ()</td></tr>
<tr class="separator:a4a1966528d60f0f34294a4b1458dab1c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99c7950ea92f8a234e46f94616170d4c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a99c7950ea92f8a234e46f94616170d4c">Equals</a> (System.Object obj)</td></tr>
<tr class="separator:a99c7950ea92f8a234e46f94616170d4c inherit pub_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_lucene_1_1_net_1_1_search_1_1_query')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Lucene.Net.Search.Query</a></td></tr>
<tr class="memitem:ac1ca86c30835f69c14785d98261be101 inherit pub_static_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#ac1ca86c30835f69c14785d98261be101">MergeBooleanQueries</a> (params <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html">BooleanQuery</a>[] queries)</td></tr>
<tr class="memdesc:ac1ca86c30835f69c14785d98261be101 inherit pub_static_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: merges the clauses of a set of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a>'s into a single <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a>. <a href="#ac1ca86c30835f69c14785d98261be101"></a><br/></td></tr>
<tr class="separator:ac1ca86c30835f69c14785d98261be101 inherit pub_static_methods_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_class_lucene_1_1_net_1_1_search_1_1_query"><td colspan="2" onclick="javascript:toggleInherit('properties_class_lucene_1_1_net_1_1_search_1_1_query')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Lucene.Net.Search.Query</a></td></tr>
<tr class="memitem:a2a58b600e864bed65cc21815fffa0218 inherit properties_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a2a58b600e864bed65cc21815fffa0218">Boost</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a2a58b600e864bed65cc21815fffa0218 inherit properties_class_lucene_1_1_net_1_1_search_1_1_query"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets the boost for this query clause to <code>b</code>. <a class="el" href="namespace_lucene_1_1_net_1_1_documents.html">Documents</a> matching this clause will (in addition to the normal weightings) have their score multiplied by <code>b</code>. The boost is 1.0 by default. <a href="#a2a58b600e864bed65cc21815fffa0218"></a><br/></td></tr>
<tr class="separator:a2a58b600e864bed65cc21815fffa0218 inherit properties_class_lucene_1_1_net_1_1_search_1_1_query"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries. This is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a single search field). We want the primary score to be the one associated with the highest boost, not the sum of the field scores (as <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a> would give). If the query is "albino elephant" this ensures that "albino" matching one field and "elephant" matching another gets a higher score than "albino" matching both fields. To get this result, use both <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a> and <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>: for each term a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a> searches for it in each field, while the set of these <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>'s is combined into a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_boolean_query.html" title="A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys. ">BooleanQuery</a>. The tie breaker capability allows results that include the same term in multiple fields to be judged better than results that include this term in only the best of those multiple fields, without confusing this with the better case of two different terms in the multiple fields. </p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00040">40</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abec95b53861d950ce18a91107758447e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Search.DisjunctionMaxQuery.DisjunctionMaxQuery </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>tieBreakerMultiplier</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new empty <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a>. Use add() to add the subqueries.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tieBreakerMultiplier</td><td>the score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score. If non-zero, the value should be small, on the order of 0.1, which says that 10 occurrences of word in a lower-scored field that is also in a higher scored field is just as good as a unique word in the lower scored field (i.e., one that is not in any higher scored field. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00055">55</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="acabb2b7d33e1fd719364758455ac3a5b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Search.DisjunctionMaxQuery.DisjunctionMaxQuery </td>
<td>(</td>
<td class="paramtype">System.Collections.Generic.ICollection&lt; <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> &gt;&#160;</td>
<td class="paramname"><em>disjuncts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>tieBreakerMultiplier</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a></p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">disjuncts</td><td>a Collection&lt;<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html" title="The abstract base class for queries. Instantiable subclasses are: TermQuery MultiTermQuery BooleanQ...">Query</a>&gt; of all the disjuncts to add </td></tr>
<tr><td class="paramname">tieBreakerMultiplier</td><td>the weight to give to each matching non-maximum disjunct </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00065">65</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab8cac125c73e1e587980823c44099915"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Search.DisjunctionMaxQuery.Add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>&#160;</td>
<td class="paramname"><em>query</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a subquery to this disjunction</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">query</td><td>the disjunct added </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00074">74</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a8fccd48f58c144be71c19386f131d646"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Search.DisjunctionMaxQuery.Add </td>
<td>(</td>
<td class="paramtype">System.Collections.Generic.ICollection&lt; <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> &gt;&#160;</td>
<td class="paramname"><em>disjuncts</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a collection of disjuncts to this disjunction via Iterable </p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00082">82</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0ff39d445954777843927a8ec4ff5449"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override System.Object Lucene.Net.Search.DisjunctionMaxQuery.Clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a shallow copy of us &ndash; used in rewriting if necessary</p>
<dl class="section return"><dt>Returns</dt><dd>a copy of us (but reuse, don't copy, our subqueries) </dd></dl>
<p>Reimplemented from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#aa06acccee0ba99acb9f6fea24dff856d">Lucene.Net.Search.Query</a>.</p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00268">268</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a8fecad6fada921b8abbf77884015115b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html">Weight</a> Lucene.Net.Search.DisjunctionMaxQuery.CreateWeight </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_searcher.html">Searcher</a>&#160;</td>
<td class="paramname"><em>searcher</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Expert: Constructs an appropriate <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_weight.html" title="Expert: Calculate query weights and build query scorers. The purpose of Weight is to ensure searching...">Weight</a> implementation for this query. </p>
<p>Only implemented by primitive queries, which re-write to themselves. </p>
<p>Reimplemented from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#adb579d26787d010ed599ab01a9b6adae">Lucene.Net.Search.Query</a>.</p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00222">222</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a5a2a59a4851fc45bf52631d0b37730c7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override bool Lucene.Net.Search.DisjunctionMaxQuery.Equals </td>
<td>(</td>
<td class="paramtype">System.Object&#160;</td>
<td class="paramname"><em>o</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return true iff we represent the same query as o</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">o</td><td>another object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true iff o is a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html" title="A query that generates the union of documents produced by its subqueries, and that scores each docume...">DisjunctionMaxQuery</a> with the same boost and the same subqueries, in the same order, as us </dd></dl>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00328">328</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a9abd0b24d5a8a92b33feeb053ff8a7fd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Search.DisjunctionMaxQuery.ExtractTerms </td>
<td>(</td>
<td class="paramtype">System.Collections.Generic.ISet&lt; <a class="el" href="class_lucene_1_1_net_1_1_index_1_1_term.html">Term</a> &gt;&#160;</td>
<td class="paramname"><em>terms</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_disjunction_max_query.html#abd0ddda11e9b55bf0c996f5837ef2d9b">rewritten</a> form. </p>
<p>&lt;throws&gt; UnsupportedOperationException if this query is not yet rewritten &lt;/throws&gt; </p>
<p>Reimplemented from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a9f47bf807320ce75a9096c983ab358d7">Lucene.Net.Search.Query</a>.</p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00276">276</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a6b25ca9bf9a0134cda4e86b76d2e5b56"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual System.Collections.Generic.IEnumerator&lt;<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a>&gt; Lucene.Net.Search.DisjunctionMaxQuery.GetEnumerator </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An Iterator&lt;<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html" title="The abstract base class for queries. Instantiable subclasses are: TermQuery MultiTermQuery BooleanQ...">Query</a>&gt; over the disjuncts </p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00088">88</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a84ca406eb8a42a9c239d1f23032a245d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override int Lucene.Net.Search.DisjunctionMaxQuery.GetHashCode </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute a hash code for hashing us</p>
<dl class="section return"><dt>Returns</dt><dd>the hash code </dd></dl>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00339">339</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="abd0ddda11e9b55bf0c996f5837ef2d9b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> Lucene.Net.Search.DisjunctionMaxQuery.Rewrite </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_index_1_1_index_reader.html">IndexReader</a>&#160;</td>
<td class="paramname"><em>reader</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Optimize our representation and our subqueries representations</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reader</td><td>the IndexReader we query </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an optimized copy of us (which may not be a copy if there is nothing to optimize) </dd></dl>
<p>Reimplemented from <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a0d78f3423d340cf4ddbeb2db9e13d055">Lucene.Net.Search.Query</a>.</p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00232">232</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ac07519542379fdbe31b136b5a8c810b1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override System.String Lucene.Net.Search.DisjunctionMaxQuery.ToString </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>field</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prettyprint us.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">field</td><td>the field to which we are applied </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a string that shows what we do, of the form "(disjunct1 | disjunct2 | ... | disjunctn)^boost" </dd></dl>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html#a5c948f4230c7d9d1acf3dc38551137d5">Lucene.Net.Search.Query</a>.</p>
<p>Definition at line <a class="el" href="_disjunction_max_query_8cs_source.html#l00289">289</a> of file <a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Search/<a class="el" href="_disjunction_max_query_8cs_source.html">DisjunctionMaxQuery.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:56 for Lucene.Net by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>