blob: f3d276937b95af2916141f94ba25d4ff65e4e8d4 [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.Function.CustomScoreQuery 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="namespace_lucene_1_1_net_1_1_search_1_1_function.html">Function</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html">CustomScoreQuery</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="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Search.Function.CustomScoreQuery Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><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> that sets document score as a programmatic function of several (sub) scores: </p>
<ul>
<li>
the score of its subQuery (any query) </li>
<li>
(optional) the score of its <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> (or queries). For most simple/convenient use cases this query is likely to be a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_field_score_query.html">FieldScoreQuery</a> </li>
</ul>
<p>Subclasses can modify the computation by overriding <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a>.
<a href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_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>, and ICloneable.</p>
<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:a3ac44c769ab707634418c4f26077546b"><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_function_1_1_custom_score_query.html#a3ac44c769ab707634418c4f26077546b">CustomScoreQuery</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> subQuery)</td></tr>
<tr class="memdesc:a3ac44c769ab707634418c4f26077546b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> over input subQuery. <a href="#a3ac44c769ab707634418c4f26077546b"></a><br/></td></tr>
<tr class="separator:a3ac44c769ab707634418c4f26077546b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76123561c29abbdfcb530f93e30e66dc"><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_function_1_1_custom_score_query.html#a76123561c29abbdfcb530f93e30e66dc">CustomScoreQuery</a> (<a class="el" href="class_lucene_1_1_net_1_1_search_1_1_query.html">Query</a> subQuery, <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html">ValueSourceQuery</a> valSrcQuery)</td></tr>
<tr class="memdesc:a76123561c29abbdfcb530f93e30e66dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> over input subQuery and a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a>. <a href="#a76123561c29abbdfcb530f93e30e66dc"></a><br/></td></tr>
<tr class="separator:a76123561c29abbdfcb530f93e30e66dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac570d1b0a8a2a3c6e33d5be01539df80"><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_function_1_1_custom_score_query.html#ac570d1b0a8a2a3c6e33d5be01539df80">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:ac570d1b0a8a2a3c6e33d5be01539df80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expert: called to re-write queries into primitive queries. For example, a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_prefix_query.html" title="A Query that matches documents containing terms with a specified prefix. A PrefixQuery is built by Qu...">PrefixQuery</a> will be rewritten 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> that consists of TermQuerys. <a href="#ac570d1b0a8a2a3c6e33d5be01539df80"></a><br/></td></tr>
<tr class="separator:ac570d1b0a8a2a3c6e33d5be01539df80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d54de7f8d501f5550cec69bd7f45e95"><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_function_1_1_custom_score_query.html#a7d54de7f8d501f5550cec69bd7f45e95">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:a7d54de7f8d501f5550cec69bd7f45e95"><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_function_1_1_custom_score_query.html#ac570d1b0a8a2a3c6e33d5be01539df80">rewritten</a> form. <a href="#a7d54de7f8d501f5550cec69bd7f45e95"></a><br/></td></tr>
<tr class="separator:a7d54de7f8d501f5550cec69bd7f45e95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6762ed2d680939f8bb6e24a384c05f25"><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_function_1_1_custom_score_query.html#a6762ed2d680939f8bb6e24a384c05f25">Clone</a> ()</td></tr>
<tr class="memdesc:a6762ed2d680939f8bb6e24a384c05f25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a clone of this query. <a href="#a6762ed2d680939f8bb6e24a384c05f25"></a><br/></td></tr>
<tr class="separator:a6762ed2d680939f8bb6e24a384c05f25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93033d589a0bf85e4d7957c1000906c6"><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_function_1_1_custom_score_query.html#a93033d589a0bf85e4d7957c1000906c6">ToString</a> (System.String field)</td></tr>
<tr class="memdesc:a93033d589a0bf85e4d7957c1000906c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints a query to a string, with <code>field</code> assumed to be the default field and omitted. The representation used is one that is supposed to be readable by <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_query_parser.html">QueryParser</a>. However, there are the following limitations: </p>
<ul>
<li>
If the query was created by the parser, the printed representation may not be exactly what was parsed. For example, characters that need to be escaped will be represented without the required backslash. </li>
<li>
Some of the more complicated queries (e.g. span queries) don't have a representation that can be parsed by QueryParser. </li>
</ul>
<a href="#a93033d589a0bf85e4d7957c1000906c6"></a><br/></td></tr>
<tr class="separator:a93033d589a0bf85e4d7957c1000906c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85366d3a62d515d6cd3bf0687592be69"><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_function_1_1_custom_score_query.html#a85366d3a62d515d6cd3bf0687592be69">Equals</a> (System.Object o)</td></tr>
<tr class="memdesc:a85366d3a62d515d6cd3bf0687592be69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if <code>o</code> is equal to this. <a href="#a85366d3a62d515d6cd3bf0687592be69"></a><br/></td></tr>
<tr class="separator:a85366d3a62d515d6cd3bf0687592be69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a839a0e9d323f46c8ab9e2b0e39b26e59"><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_function_1_1_custom_score_query.html#a839a0e9d323f46c8ab9e2b0e39b26e59">GetHashCode</a> ()</td></tr>
<tr class="memdesc:a839a0e9d323f46c8ab9e2b0e39b26e59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a hash code value for this object. <a href="#a839a0e9d323f46c8ab9e2b0e39b26e59"></a><br/></td></tr>
<tr class="separator:a839a0e9d323f46c8ab9e2b0e39b26e59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7180811f8c617d6e40ca7d10332fd720"><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_function_1_1_custom_score_query.html#a7180811f8c617d6e40ca7d10332fd720">CustomScore</a> (int doc, float subQueryScore, float[] valSrcScores)</td></tr>
<tr class="memdesc:a7180811f8c617d6e40ca7d10332fd720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a custom score by the subQuery score and a number of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> scores. <a href="#a7180811f8c617d6e40ca7d10332fd720"></a><br/></td></tr>
<tr class="separator:a7180811f8c617d6e40ca7d10332fd720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aac8d22878d520e70c89e284bf66916"><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_function_1_1_custom_score_query.html#a1aac8d22878d520e70c89e284bf66916">CustomScore</a> (int doc, float subQueryScore, float valSrcScore)</td></tr>
<tr class="memdesc:a1aac8d22878d520e70c89e284bf66916"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a custom score by the subQuery score and the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> score. <a href="#a1aac8d22878d520e70c89e284bf66916"></a><br/></td></tr>
<tr class="separator:a1aac8d22878d520e70c89e284bf66916"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93ca8accd3053f0766336cd275e5fb3b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#a93ca8accd3053f0766336cd275e5fb3b">CustomExplain</a> (int doc, <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a> subQueryExpl, <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>[] valSrcExpls)</td></tr>
<tr class="memdesc:a93ca8accd3053f0766336cd275e5fb3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explain the custom score. <a href="#a93ca8accd3053f0766336cd275e5fb3b"></a><br/></td></tr>
<tr class="separator:a93ca8accd3053f0766336cd275e5fb3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d64d9e235bcf502e467c20c5116c253"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#a0d64d9e235bcf502e467c20c5116c253">CustomExplain</a> (int doc, <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a> subQueryExpl, <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a> valSrcExpl)</td></tr>
<tr class="memdesc:a0d64d9e235bcf502e467c20c5116c253"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explain the custom score. The doc is relative to the current reader, which is unknown to <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> when using per-segment search (since <a class="el" href="namespace_lucene.html">Lucene</a> 2.9). Please override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a> and return a subclass of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. <a href="#a0d64d9e235bcf502e467c20c5116c253"></a><br/></td></tr>
<tr class="separator:a0d64d9e235bcf502e467c20c5116c253"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17ef203d1bac3cf33260527df87a3133"><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_function_1_1_custom_score_query.html#a17ef203d1bac3cf33260527df87a3133">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:a17ef203d1bac3cf33260527df87a3133"><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="#a17ef203d1bac3cf33260527df87a3133"></a><br/></td></tr>
<tr class="separator:a17ef203d1bac3cf33260527df87a3133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e2dee2ab7bf453a6422c47bd0909e12"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#a1e2dee2ab7bf453a6422c47bd0909e12">IsStrict</a> ()</td></tr>
<tr class="memdesc:a1e2dee2ab7bf453a6422c47bd0909e12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if this is strict custom scoring. In strict custom scoring, the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part does not participate in weight normalization. This may be useful when one wants full control over how scores are modified, and does not care about normalizing by the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part. One particular case where this is useful if for testing this query. Note: only has effect when the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part is not null. <a href="#a1e2dee2ab7bf453a6422c47bd0909e12"></a><br/></td></tr>
<tr class="separator:a1e2dee2ab7bf453a6422c47bd0909e12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76dc608de9c979883c26e55e5db89f7a"><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_function_1_1_custom_score_query.html#a76dc608de9c979883c26e55e5db89f7a">SetStrict</a> (bool strict)</td></tr>
<tr class="memdesc:a76dc608de9c979883c26e55e5db89f7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the strict mode of this query. <a href="#a76dc608de9c979883c26e55e5db89f7a"></a><br/></td></tr>
<tr class="separator:a76dc608de9c979883c26e55e5db89f7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6743793b7df20182b16b989784993723"><td class="memItemLeft" align="right" valign="top">virtual System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#a6743793b7df20182b16b989784993723">Name</a> ()</td></tr>
<tr class="memdesc:a6743793b7df20182b16b989784993723"><td class="mdescLeft">&#160;</td><td class="mdescRight">A short name of this query, used in ToString(String). <a href="#a6743793b7df20182b16b989784993723"></a><br/></td></tr>
<tr class="separator:a6743793b7df20182b16b989784993723"><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="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aab7ecc65053fd215dd983cc6dbac19a5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html">CustomScoreProvider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5">GetCustomScoreProvider</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:aab7ecc65053fd215dd983cc6dbac19a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> that calculates the custom scores for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. The default implementation returns a default implementation as specified in the docs of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a>. <a href="#aab7ecc65053fd215dd983cc6dbac19a5"></a><br/></td></tr>
<tr class="separator:aab7ecc65053fd215dd983cc6dbac19a5"><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 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> that sets document score as a programmatic function of several (sub) scores: </p>
<ul>
<li>
the score of its subQuery (any query) </li>
<li>
(optional) the score of its <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> (or queries). For most simple/convenient use cases this query is likely to be a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_field_score_query.html">FieldScoreQuery</a> </li>
</ul>
<p>Subclasses can modify the computation by overriding <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a>. </p>
<p>&lt;font color="#FF0000"&gt; WARNING: The status of the <b><a class="el" href="namespace_lucene_1_1_net_1_1_search_1_1_function.html">Search.Function</a></b> package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.&lt;/font&gt; </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00049">49</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3ac44c769ab707634418c4f26077546b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Search.Function.CustomScoreQuery.CustomScoreQuery </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>subQuery</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> over input subQuery.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">subQuery</td><td>the sub query whose scored is being customed. Must not be null. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00059">59</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a76123561c29abbdfcb530f93e30e66dc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Search.Function.CustomScoreQuery.CustomScoreQuery </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>subQuery</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html">ValueSourceQuery</a>&#160;</td>
<td class="paramname"><em>valSrcQuery</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> over input subQuery and a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">subQuery</td><td>the sub query whose score is being customed. Must not be null. </td></tr>
<tr><td class="paramname">valSrcQuery</td><td>a value source query whose scores are used in the custom score computation. For most simple/convineient use case this would be a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_field_score_query.html">FieldScoreQuery</a>. This parameter is optional - it can be null or even an empty array. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00071">71</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6762ed2d680939f8bb6e24a384c05f25"></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.Function.CustomScoreQuery.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>Returns a clone of this query. </p>
<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="_custom_score_query_8cs_source.html#l00127">127</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a17ef203d1bac3cf33260527df87a3133"></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.Function.CustomScoreQuery.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="_custom_score_query_8cs_source.html#l00545">545</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a93ca8accd3053f0766336cd275e5fb3b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a> Lucene.Net.Search.Function.CustomScoreQuery.CustomExplain </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>doc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>&#160;</td>
<td class="paramname"><em>subQueryExpl</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>[]&#160;</td>
<td class="paramname"><em>valSrcExpls</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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>Explain the custom score. </p>
<p>The doc is relative to the current reader, which is unknown to <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> when using per-segment search (since <a class="el" href="namespace_lucene.html">Lucene</a> 2.9). Please override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider(IndexReader)</a> and return a subclass of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00279">279</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0d64d9e235bcf502e467c20c5116c253"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a> Lucene.Net.Search.Function.CustomScoreQuery.CustomExplain </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>doc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>&#160;</td>
<td class="paramname"><em>subQueryExpl</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_explanation.html">Explanation</a>&#160;</td>
<td class="paramname"><em>valSrcExpl</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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>Explain the custom score. The doc is relative to the current reader, which is unknown to <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> when using per-segment search (since <a class="el" href="namespace_lucene.html">Lucene</a> 2.9). Please override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a> and return a subclass of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00310">310</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7180811f8c617d6e40ca7d10332fd720"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual float Lucene.Net.Search.Function.CustomScoreQuery.CustomScore </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>doc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>subQueryScore</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float[]&#160;</td>
<td class="paramname"><em>valSrcScores</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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>Compute a custom score by the subQuery score and a number of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> scores. </p>
<p>The doc is relative to the current reader, which is unknown to <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> when using per-segment search (since <a class="el" href="namespace_lucene.html">Lucene</a> 2.9). Please override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a> and return a subclass of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. see CustomScoreProvider::customScore(int,float,float[]) </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00237">237</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a1aac8d22878d520e70c89e284bf66916"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual float Lucene.Net.Search.Function.CustomScoreQuery.CustomScore </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>doc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>subQueryScore</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>valSrcScore</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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>Compute a custom score by the subQuery score and the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source_query.html" title="Expert: A Query that sets the scores of document to the values obtained from a ValueSource. This query provides a score for each and every undeleted document in the index. The value source can be based on a (cached) value of an indexed field, but it can also be based on an external source, e.g. values read from an external database. Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).">ValueSourceQuery</a> score. </p>
<p>The doc is relative to the current reader, which is unknown to <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html" title="Query that sets document score as a programmatic function of several (sub) scores: the score of its s...">CustomScoreQuery</a> when using per-segment search (since <a class="el" href="namespace_lucene.html">Lucene</a> 2.9). Please override <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#aab7ecc65053fd215dd983cc6dbac19a5" title="Returns a CustomScoreProvider that calculates the custom scores for the given IndexReader. The default implementation returns a default implementation as specified in the docs of CustomScoreProvider. ">GetCustomScoreProvider</a> and return a subclass of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html#ac2d49405872ae745fb70f9d433d4d823" title="Compute a custom score by the subQuery score and the ValueSourceQuery score. Subclasses can override ...">CustomScoreProvider.CustomScore(int,float,float)</a></dd></dl>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00264">264</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a85366d3a62d515d6cd3bf0687592be69"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override bool Lucene.Net.Search.Function.CustomScoreQuery.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>Returns true if <code>o</code> is equal to this. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00154">154</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7d54de7f8d501f5550cec69bd7f45e95"></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.Function.CustomScoreQuery.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_function_1_1_custom_score_query.html#ac570d1b0a8a2a3c6e33d5be01539df80">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="_custom_score_query_8cs_source.html#l00117">117</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aab7ecc65053fd215dd983cc6dbac19a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html">CustomScoreProvider</a> Lucene.Net.Search.Function.CustomScoreQuery.GetCustomScoreProvider </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">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a> that calculates the custom scores for the given <a class="el" href="_reader_util_8cs.html#a2a6914ea10bbe06764856e29e5674e66">IndexReader</a>. The default implementation returns a default implementation as specified in the docs of <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_provider.html" title="An instance of this subclass should be returned by CustomScoreQuery.GetCustomScoreProvider, if you want to modify the custom score calculation of a CustomScoreQuery.">CustomScoreProvider</a>. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00192">192</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a839a0e9d323f46c8ab9e2b0e39b26e59"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override int Lucene.Net.Search.Function.CustomScoreQuery.GetHashCode </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a hash code value for this object. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00174">174</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a1e2dee2ab7bf453a6422c47bd0909e12"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool Lucene.Net.Search.Function.CustomScoreQuery.IsStrict </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>Checks if this is strict custom scoring. In strict custom scoring, the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part does not participate in weight normalization. This may be useful when one wants full control over how scores are modified, and does not care about normalizing by the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part. One particular case where this is useful if for testing this query. Note: only has effect when the <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_value_source.html" title="Expert: source of values for basic function queries. At its default/simplest form, values - one per doc - are used as the score of that doc. Values are instantiated as DocValues for a particular reader. ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.">ValueSource</a> part is not null. </p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00558">558</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a6743793b7df20182b16b989784993723"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual System.String Lucene.Net.Search.Function.CustomScoreQuery.Name </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>A short name of this query, used in ToString(String).</p>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00574">574</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ac570d1b0a8a2a3c6e33d5be01539df80"></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.Function.CustomScoreQuery.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>Expert: called to re-write queries into primitive queries. For example, a <a class="el" href="class_lucene_1_1_net_1_1_search_1_1_prefix_query.html" title="A Query that matches documents containing terms with a specified prefix. A PrefixQuery is built by Qu...">PrefixQuery</a> will be rewritten 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> that consists of TermQuerys. </p>
<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="_custom_score_query_8cs_source.html#l00092">92</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a76dc608de9c979883c26e55e5db89f7a"></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.Function.CustomScoreQuery.SetStrict </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>strict</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>Set the strict mode of this query. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">strict</td><td>The strict mode to set. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="class_lucene_1_1_net_1_1_search_1_1_function_1_1_custom_score_query.html#a1e2dee2ab7bf453a6422c47bd0909e12" title="Checks if this is strict custom scoring. In strict custom scoring, the ValueSource part does not part...">IsStrict()</a></dd></dl>
<p>Definition at line <a class="el" href="_custom_score_query_8cs_source.html#l00568">568</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a93033d589a0bf85e4d7957c1000906c6"></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.Function.CustomScoreQuery.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>Prints a query to a string, with <code>field</code> assumed to be the default field and omitted. The representation used is one that is supposed to be readable by <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_query_parser.html">QueryParser</a>. However, there are the following limitations: </p>
<ul>
<li>
If the query was created by the parser, the printed representation may not be exactly what was parsed. For example, characters that need to be escaped will be represented without the required backslash. </li>
<li>
Some of the more complicated queries (e.g. span queries) don't have a representation that can be parsed by QueryParser. </li>
</ul>
</p>
<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="_custom_score_query_8cs_source.html#l00140">140</a> of file <a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Search/Function/<a class="el" href="_custom_score_query_8cs_source.html">CustomScoreQuery.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:58 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>