<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" /><META NAME="save" CONTENT="history" /><title>BooleanQuery Methods</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="BooleanQuery class, methods" /><meta name="Microsoft.Help.Id" content="Methods.T:Lucene.Net.Search.BooleanQuery" /><meta name="Microsoft.Help.ContentType" content="Reference" /><link rel="stylesheet" type="text/css" href="../styles/Presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"> </script><script type="text/javascript" src="../scripts/SplitScreen.js"> </script><script type="text/javascript" src="../scripts/Dropdown.js"> </script><script type="text/javascript" src="../scripts/script_manifold.js"> </script><script type="text/javascript" src="../scripts/script_feedBack.js"> </script><script type="text/javascript" src="../scripts/CheckboxMenu.js"> </script><script type="text/javascript" src="../scripts/CommonUtilities.js"> </script><meta name="container" content="Lucene.Net.Search" /><meta name="file" content="3a29ad40-1d9a-8809-1d45-a910798b097e" /><meta name="guid" content="3a29ad40-1d9a-8809-1d45-a910798b097e" /><xml><MSHelp:Attr Name="AssetID" Value="Methods.T:Lucene.Net.Search.BooleanQuery" /><MSHelp:TOCTitle Title="BooleanQuery Methods" /><MSHelp:RLTitle Title="BooleanQuery Methods (Lucene.Net.Search)" /><MSHelp:Keyword Index="A" Term="Methods.T:Lucene.Net.Search.BooleanQuery" /><MSHelp:Keyword Index="A" Term="frlrfLuceneNetSearchBooleanQueryMethodsTopic" /><MSHelp:Keyword Index="K" Term="BooleanQuery class, methods" /><MSHelp:Attr Name="DevLang" Value="CSharp" /><MSHelp:Attr Name="DevLang" Value="VB" /><MSHelp:Attr Name="Locale" Value="en-us" /><MSHelp:Attr Name="TopicType" Value="kbSyntax" /><MSHelp:Attr Name="TopicType" Value="apiref" /><MSHelp:Attr Name="AssemblyVersion" Value="2.9.4.1" /></xml><link type="text/css" rel="stylesheet" href="../styles/highlight.css" /><script type="text/javascript" src="../scripts/highlight.js"> </script></head><body><input type="hidden" id="userDataCache" class="userDataStyle" /><input type="hidden" id="hiddenScrollOffset" /><img id="collapseImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" alt="Collapse image" title="Collapse image" /><img id="expandImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" alt="Expand Image" title="Expand Image" /><img id="collapseAllImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" /><img id="expandAllImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" /><img id="dropDownImage" style="display:none; height:0; width:0;" src="../icons/dropdown.gif" /><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="../icons/dropdownHover.gif" /><img id="copyImage" style="display:none; height:0; width:0;" src="../icons/copycode.gif" alt="Copy image" title="Copy image" /><img id="copyHoverImage" style="display:none; height:0; width:0;" src="../icons/copycodeHighlight.gif" alt="CopyHover image" title="CopyHover image" /><div id="header"><table id="topTable" cellspacing="0" cellpadding="0"><tr><td><span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0"><img ID="toggleAllImage" class="toggleAll" src="../icons/collapse_all.gif" /> <label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span><span> </span><span id="devlangsDropdown" class="filter" tabindex="0"><img id="devlangsDropdownImage" src="../icons/dropdown.gif" /> <label id="devlangsMenuAllLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: All </nobr></label><label id="devlangsMenuMultipleLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Multiple </nobr></label><label id="devlangsMenuCSharpLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: C# </nobr></label><label id="devlangsMenuVisualBasicLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual Basic </nobr></label><label id="devlangsMenuManagedCPlusPlusLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual C++ </nobr></label></span><span> </span><span id="memberOptionsDropdown" class="filter" tabindex="0"><img id="memberOptionsDropdownImage" src="../icons/dropdown.gif" /> <label id="memberOptionsMenuAllLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Show All </nobr></label><label id="memberOptionsMenuMultipleLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label><label id="memberOptionsMenuProtectedLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label><label id="memberOptionsMenuInheritedLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label></span></td></tr></table><div id="devlangsMenu"><input id="CSharpCheckbox" type="checkbox" data="CSharp,cs,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="CSharpCheckbox">C#</label><br /><input id="VisualBasicCheckbox" type="checkbox" data="VisualBasic,vb,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="VisualBasicCheckbox">Visual Basic</label><br /><input id="ManagedCPlusPlusCheckbox" type="checkbox" data="ManagedCPlusPlus,cpp,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="ManagedCPlusPlusCheckbox">Visual C++</label><br /></div><div id="memberOptionsMenu"><input id="ProtectedCheckbox" type="checkbox" data="Protected" value="on" onClick="SetMemberOptions(this, 'vis')" /><label class="checkboxLabel" for="ProtectedCheckbox">Include Protected Members</label><br /><input id="InheritedCheckbox" type="checkbox" data="Inherited" value="on" onClick="SetMemberOptions(this, 'decl')" /><label class="checkboxLabel" for="InheritedCheckbox">Include Inherited Members</label><br /></div><table id="bottomTable" cellpadding="0" cellspacing="0"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText">Lucene.Net Class Libraries</span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">BooleanQuery Methods</span></td></tr><tr id="headerTableRow3"><td align="left"><a href="e26a1f99-0b64-ba13-9ec4-cde23885af56.htm">BooleanQuery Class</a> <a href="#seeAlsoToggle" onclick="OpenSection(seeAlsoToggle)">See Also</a> <span id="headfeedbackarea" class="feedbackhead"><a href="javascript:SubmitFeedback('','Lucene.Net Class Libraries','','','','%0\dYour%20feedback%20is%20used%20to%20improve%20the%20documentation%20and%20the%20product.%20Your%20e-mail%20address%20will%20not%20be%20used%20for%20any%20other%20purpose%20and%20is%20disposed%20of%20after%20the%20issue%20you%20report%20is%20resolved.%20%20While%20working%20to%20resolve%20the%20issue%20that%20you%20report,%20you%20may%20be%20contacted%20via%20e-mail%20to%20get%20further%20details%20or%20clarification%20on%20the%20feedback%20you%20sent.%20After%20the%20issue%20you%20report%20has%20been%20addressed,%20you%20may%20receive%20an%20e-mail%20to%20let%20you%20know%20that%20your%20feedback%20has%20been%20addressed.%0\A%0\d','Customer%20Feedback');">Send Feedback</a></span></td></tr></table><table id="gradientTable"><tr><td class="nsrBottom" background="../icons/gradient.gif" /></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><span style="color: DarkGray"></span><p>The <a href="e26a1f99-0b64-ba13-9ec4-cde23885af56.htm">BooleanQuery</a> type exposes the following members.</p><h1 class="heading"><span onclick="ExpandCollapse(methodTableToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(methodTableToggle, event)" tabindex="0"><img id="methodTableToggle" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif" />Methods</span></h1><div id="methodTableSection" class="section" name="collapseableSection" style=""><table id="memberList" class="members" frame="lhs" cellpadding="2"><col width="10%" /><tr><th class="iconColumn"> | |
</th><th class="nameColumn">Name</th><th class="descriptionColumn">Description</th></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="4004d71f-4494-e95b-c14f-26620f810416.htm">Add(BooleanClause)</a></td><td><div class="summary">Adds a clause to a boolean query.</div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="718c86b0-12dd-d70c-6c51-ba3cecbb3fcc.htm">Add(Query, BooleanClause<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>Occur)</a></td><td><div class="summary">Adds a clause to a boolean query. | |
</div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="249e2579-d76f-3af0-5af9-f133518b81c4.htm">Clauses</a></td><td><div class="summary">Returns the list of clauses in this query. </div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="6d45323e-2607-5f7a-e28c-c5b3c5e193f5.htm">Clone</a></td><td> (Overrides <a href="708d50c0-d015-de8e-bd97-75ccd21c3b3b.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>Clone<span class="languageSpecificText"><span class="cs">()</span><span class="cpp">()</span><span class="nu">()</span><span class="fs">()</span></span></a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="2cb623ec-94e8-7be3-c554-1302546ed5d3.htm">Combine</a></td><td><div class="summary">Expert: called when re-writing queries under MultiSearcher. | |
Create a single query suitable for use by all subsearchers (in 1-1 | |
correspondence with queries). This is an optimization of the OR of | |
all queries. We handle the common optimization cases of equal | |
queries and overlapping clauses of boolean OR queries (as generated | |
by MultiTermQuery.rewrite()). | |
Be careful overriding this method as queries[0] determines which | |
method will be called and is not necessarily of the same type as | |
the other queries. | |
</div> (Inherited from <a href="92f5b96d-ab32-4c16-79a2-bdc2e707f1fe.htm">Query</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="7181ba0e-3fb5-3ae3-c86f-93000fb21be1.htm">CreateWeight</a></td><td> (Overrides <a href="8bf708db-4694-5ed1-71e3-36308abf505f.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>CreateWeight(Searcher)</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="8b6848c6-88f8-3423-90cb-919fd05ef307.htm">Equals</a></td><td><div class="summary">Returns true iff <span id="cbc_1" x-lang="CSharp" codeLanguage="CSharp"><div class="highlight-title"><span class="highlight-copycode" onkeypress="javascript:CopyColorizedCodeCheckKey(this.parentNode, event);" tabindex="0" onmouseover="CopyCodeChangeIcon(this)" onmouseout="CopyCodeChangeIcon(this)" onclick="javascript:CopyColorizedCode(this.parentNode);"><img style="margin-right: 5px;" src="../icons/CopyCode.gif" />Copy</span>C#</div><div class="code"><pre xml:space="preserve">o</pre></div></span> is equal to this. </div> (Overrides <a href="f2d5c7bc-192e-e592-0ed2-c2ded6669734.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>Equals(Object)</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="cf5ee4b5-f4eb-1bad-6139-9d7ec5342988.htm">ExtractTerms</a></td><td> (Overrides <a href="4d5b001f-214f-5620-7aea-17e00c365d4b.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>ExtractTerms(Hashtable)</a>.)</td></tr><tr data="protected;inherited;notNetfw;"><td><img src="../icons/protmethod.gif" alt="Protected method" title="Protected method" /></td><td><a href="http://msdn2.microsoft.com/en-us/library/4k87zsw7" target="_blank">Finalize</a></td><td><div class="summary">Allows an <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a> to attempt to free resources and perform other cleanup operations before the <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a> is reclaimed by garbage collection.</div> (Inherited from <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a>.)</td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="16dc676d-4ac6-99c4-8866-91395175b63f.htm">GetAllowDocsOutOfOrder</a></td><td> <font color="red"><b>Obsolete. </b></font><div class="summary"> Whether hit docs may be collected out of docid order. | |
</div></td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="e4bdba3b-0e43-515a-f40e-5ee7afdc7b79.htm">GetBoost</a></td><td><div class="summary">Gets the boost for this clause. Documents matching | |
this clause will (in addition to the normal weightings) have their score | |
multiplied by <span id="cbc_2" x-lang="CSharp" codeLanguage="CSharp"><div class="highlight-title"><span class="highlight-copycode" onkeypress="javascript:CopyColorizedCodeCheckKey(this.parentNode, event);" tabindex="0" onmouseover="CopyCodeChangeIcon(this)" onmouseout="CopyCodeChangeIcon(this)" onclick="javascript:CopyColorizedCode(this.parentNode);"><img style="margin-right: 5px;" src="../icons/CopyCode.gif" />Copy</span>C#</div><div class="code"><pre xml:space="preserve">b</pre></div></span>. The boost is 1.0 by default. | |
</div> (Inherited from <a href="92f5b96d-ab32-4c16-79a2-bdc2e707f1fe.htm">Query</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="f4120246-32a3-42ce-94ce-19882d84d0b8.htm">GetClauses</a></td><td><div class="summary">Returns the set of clauses in this query. </div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="6c084445-da36-e850-055d-b93de8ee1693.htm">GetHashCode</a></td><td><div class="summary">Returns a hash code value for this object.</div> (Overrides <a href="b2f12650-6be0-c3ac-cb01-c95e28754b95.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>GetHashCode<span class="languageSpecificText"><span class="cs">()</span><span class="cpp">()</span><span class="nu">()</span><span class="fs">()</span></span></a>.)</td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="777cd866-87c7-d675-e4fe-add3fcc18879.htm">GetMaxClauseCount</a></td><td><div class="summary">Return the maximum number of clauses permitted, 1024 by default. | |
Attempts to add more than the permitted number of clauses cause {@link | |
TooManyClauses} to be thrown. | |
</div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="e5996eb4-b56c-30fa-f3d7-df5181291e11.htm">GetMinimumNumberShouldMatch</a></td><td><div class="summary"> Gets the minimum number of the optional BooleanClauses | |
which must be satisifed. | |
</div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="4eeb0593-80ed-7e6b-38c8-132424f670f8.htm">GetSimilarity</a></td><td> (Overrides <a href="dff5e56d-b71a-ff9b-0067-d2dc729a2b2f.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>GetSimilarity(Searcher)</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="http://msdn2.microsoft.com/en-us/library/dfwy45w9" target="_blank">GetType</a></td><td><div class="summary">Gets the <a href="http://msdn2.microsoft.com/en-us/library/42892f65" target="_blank">Type</a> of the current instance.</div> (Inherited from <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a>.)</td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="164ea5fc-1da1-4457-479e-242f7f8cd41f.htm">GetUseScorer14</a></td><td> <font color="red"><b>Obsolete. </b></font></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="e3e509ec-6459-d815-1a3c-def6cb350e3b.htm">IsCoordDisabled</a></td><td><div class="summary">Returns true iff {@link Similarity#Coord(int,int)} is disabled in | |
scoring for this query instance. | |
</div></td></tr><tr data="protected;inherited;notNetfw;"><td><img src="../icons/protmethod.gif" alt="Protected method" title="Protected method" /></td><td><a href="http://msdn2.microsoft.com/en-us/library/57ctke0a" target="_blank">MemberwiseClone</a></td><td><div class="summary">Creates a shallow copy of the current <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a>.</div> (Inherited from <a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="08b4ddae-ccfb-7946-b6b7-b734d6915e38.htm">Rewrite</a></td><td> (Overrides <a href="3324c427-77a4-ae29-c180-6f1b947102bb.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>Rewrite(IndexReader)</a>.)</td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="e725e2db-dcd8-8bdf-2f97-3348bc74f53c.htm">SetAllowDocsOutOfOrder</a></td><td> <font color="red"><b>Obsolete. </b></font><div class="summary"> Expert: Indicates whether hit docs may be collected out of docid order. | |
<p /> | |
Background: although the contract of the Scorer class requires that | |
documents be iterated in order of doc id, this was not true in early | |
versions of Lucene. Many pieces of functionality in the current Lucene code | |
base have undefined behavior if this contract is not upheld, but in some | |
specific simple cases may be faster. (For example: disjunction queries with | |
less than 32 prohibited clauses; This setting has no effect for other | |
queries.) | |
<p /><p /> | |
Specifics: By setting this option to true, docid N might be scored for a | |
single segment before docid N-1. Across multiple segments, docs may be | |
scored out of order regardless of this setting - it only applies to scoring | |
a single segment. | |
Being static, this setting is system wide. | |
<p /></div></td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="8d6c688c-9d9b-aad5-dca5-f357a70fa9d5.htm">SetBoost</a></td><td><div class="summary">Sets the boost for this query clause to <span id="cbc_3" x-lang="CSharp" codeLanguage="CSharp"><div class="highlight-title"><span class="highlight-copycode" onkeypress="javascript:CopyColorizedCodeCheckKey(this.parentNode, event);" tabindex="0" onmouseover="CopyCodeChangeIcon(this)" onmouseout="CopyCodeChangeIcon(this)" onclick="javascript:CopyColorizedCode(this.parentNode);"><img style="margin-right: 5px;" src="../icons/CopyCode.gif" />Copy</span>C#</div><div class="code"><pre xml:space="preserve">b</pre></div></span>. Documents | |
matching this clause will (in addition to the normal weightings) have | |
their score multiplied by <span id="cbc_4" x-lang="CSharp" codeLanguage="CSharp"><div class="highlight-title"><span class="highlight-copycode" onkeypress="javascript:CopyColorizedCodeCheckKey(this.parentNode, event);" tabindex="0" onmouseover="CopyCodeChangeIcon(this)" onmouseout="CopyCodeChangeIcon(this)" onclick="javascript:CopyColorizedCode(this.parentNode);"><img style="margin-right: 5px;" src="../icons/CopyCode.gif" />Copy</span>C#</div><div class="code"><pre xml:space="preserve">b</pre></div></span>. | |
</div> (Inherited from <a href="92f5b96d-ab32-4c16-79a2-bdc2e707f1fe.htm">Query</a>.)</td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="8f6fb0fc-92a5-edb0-7d47-caa6f814d87b.htm">SetMaxClauseCount</a></td><td><div class="summary"> Set the maximum number of clauses permitted per BooleanQuery. | |
Default value is 1024. | |
</div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="26a75ffd-5a13-8704-12b2-0008908bbfc3.htm">SetMinimumNumberShouldMatch</a></td><td><div class="summary"> Specifies a minimum number of the optional BooleanClauses | |
which must be satisfied. | |
<p /> | |
By default no optional clauses are necessary for a match | |
(unless there are no required clauses). If this method is used, | |
then the specified number of clauses is required. | |
<p /><p /> | |
Use of this method is totally independent of specifying that | |
any specific clauses are required (or prohibited). This number will | |
only be compared against the number of matching optional clauses. | |
<p /><p /> | |
EXPERT NOTE: Using this method may force collecting docs in order, | |
regardless of whether setAllowDocsOutOfOrder(true) has been called. | |
<p /></div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="d7e74296-65fd-c502-eebf-801b43ccd6e4.htm">SetUseScorer14</a></td><td> <font color="red"><b>Obsolete. </b></font></td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="67c4f483-0f22-f506-6eaa-00e678fab848.htm">ToString<span class="languageSpecificText"><span class="cs">()</span><span class="cpp">()</span><span class="nu">()</span><span class="fs">()</span></span></a></td><td><div class="summary">Prints a query to a string. </div> (Inherited from <a href="92f5b96d-ab32-4c16-79a2-bdc2e707f1fe.htm">Query</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="3f41749a-008d-6173-7a77-61dd0c22cc20.htm">ToString(String)</a></td><td><div class="summary">Prints a user-readable version of this query. </div> (Overrides <a href="890e21a1-dce7-ec3d-a0dc-5a198d1245ac.htm">Query<span class="languageSpecificText"><span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span><span class="fs">.</span></span>ToString(String)</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="394a1981-8321-09c2-bbd3-14730e82149e.htm">Weight</a></td><td><div class="summary"> Expert: Constructs and initializes a Weight for a top-level query.</div> (Inherited from <a href="92f5b96d-ab32-4c16-79a2-bdc2e707f1fe.htm">Query</a>.)</td></tr></table></div><h1 class="heading"><span onclick="ExpandCollapse(seeAlsoToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(seeAlsoToggle, event)" tabindex="0"><img id="seeAlsoToggle" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif" />See Also</span></h1><div id="seeAlsoSection" class="section" name="collapseableSection" style=""><div class="seeAlsoStyle"><a href="e26a1f99-0b64-ba13-9ec4-cde23885af56.htm">BooleanQuery Class</a></div><div class="seeAlsoStyle"><a href="5715bafd-c3a8-9ed0-225c-3c4cececbdc0.htm">Lucene.Net.Search Namespace</a></div></div></div><div id="footer"><div class="footerLine"><img width="100%" height="3px" src="../icons/footer.gif" alt="Footer image" title="Footer image" /></div><A NAME="feedback"></A><span id="fb" class="feedbackcss"></span></div></div></body></html> |