source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/search/SolrConstantScoreQuery.html @ 7588

Revision 7588, 34.1 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:25 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8SolrConstantScoreQuery (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="SolrConstantScoreQuery (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrConstantScoreQuery.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../org/apache/solr/search/SolrCacheBase.AutoWarmCountRef.html" title="class in org.apache.solr.search"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.ConstantScorer.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/search/SolrConstantScoreQuery.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="SolrConstantScoreQuery.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.lucene.search.ConstantScoreQuery">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.solr.search</FONT>
92<BR>
93Class SolrConstantScoreQuery</H2>
94<PRE>
95<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">org.apache.lucene.search.Query</A>
97      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">org.apache.lucene.search.ConstantScoreQuery</A>
98          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.search.SolrConstantScoreQuery</B>
99</PRE>
100<DL>
101<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A>, <A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></DD>
102</DL>
103<DL>
104<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/solr/search/FunctionRangeQuery.html" title="class in org.apache.solr.search">FunctionRangeQuery</A></DD>
105</DL>
106<HR>
107<DL>
108<DT><PRE>public class <B>SolrConstantScoreQuery</B><DT>extends <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A><DT>implements <A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></DL>
109</PRE>
110
111<P>
112A query that wraps a filter and simply returns a constant score equal to the
113 query boost for every document in the filter.   This Solr extension also supports
114 weighting of a SolrFilter.
115
116 Experimental and subject to change.
117<P>
118
119<P>
120<HR>
121
122<P>
123<!-- ======== NESTED CLASS SUMMARY ======== -->
124
125<A NAME="nested_class_summary"><!-- --></A>
126<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129<B>Nested Class Summary</B></FONT></TH>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133<CODE>protected &nbsp;class</CODE></FONT></TD>
134<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.ConstantScorer.html" title="class in org.apache.solr.search">SolrConstantScoreQuery.ConstantScorer</A></B></CODE>
135
136<BR>
137&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138</TR>
139<TR BGCOLOR="white" CLASS="TableRowColor">
140<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141<CODE>protected &nbsp;class</CODE></FONT></TD>
142<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.ConstantWeight.html" title="class in org.apache.solr.search">SolrConstantScoreQuery.ConstantWeight</A></B></CODE>
143
144<BR>
145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146</TR>
147</TABLE>
148&nbsp;<!-- =========== FIELD SUMMARY =========== -->
149
150<A NAME="field_summary"><!-- --></A>
151<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
154<B>Field Summary</B></FONT></TH>
155</TR>
156</TABLE>
157&nbsp;<A NAME="fields_inherited_from_class_org.apache.lucene.search.ConstantScoreQuery"><!-- --></A>
158<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
159<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
160<TH ALIGN="left"><B>Fields inherited from class org.apache.lucene.search.<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></B></TH>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#filter" title="class or interface in org.apache.lucene.search">filter</A>, <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#query" title="class or interface in org.apache.lucene.search">query</A></CODE></TD>
164</TR>
165</TABLE>
166&nbsp;
167<!-- ======== CONSTRUCTOR SUMMARY ======== -->
168
169<A NAME="constructor_summary"><!-- --></A>
170<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
172<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
173<B>Constructor Summary</B></FONT></TH>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#SolrConstantScoreQuery(org.apache.lucene.search.Filter)">SolrConstantScoreQuery</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A>&nbsp;filter)</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180</TR>
181</TABLE>
182&nbsp;
183<!-- ========== METHOD SUMMARY =========== -->
184
185<A NAME="method_summary"><!-- --></A>
186<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
187<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
188<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
189<B>Method Summary</B></FONT></TH>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>&nbsp;<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Weight.html?is-external=true" title="class or interface in org.apache.lucene.search">Weight</A></CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#createWeight(org.apache.lucene.search.IndexSearcher)">createWeight</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/IndexSearcher.html?is-external=true" title="class or interface in org.apache.lucene.search">IndexSearcher</A>&nbsp;searcher)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>&nbsp;boolean</CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <code>o</code> is equal to this.</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>&nbsp;void</CODE></FONT></TD>
210<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#extractTerms(java.util.Set)">extractTerms</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&nbsp;terms)</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;boolean</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#getCache()">getCache</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should this query be cached in the query cache or filter cache.</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;boolean</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#getCacheSep()">getCacheSep</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, the clauses of this boolean query should be cached separately.</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;int</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#getCost()">getCost</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cost of this query, used to order checking of filters that are not cached.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A></CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#getFilter()">getFilter</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the encapsulated filter</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;int</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#hashCode()">hashCode</A></B>()</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hash code value for this object.</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>&nbsp;<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A></CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#rewrite(org.apache.lucene.index.IndexReader)">rewrite</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/index/IndexReader.html?is-external=true" title="class or interface in org.apache.lucene.index">IndexReader</A>&nbsp;reader)</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
262</TR>
263<TR BGCOLOR="white" CLASS="TableRowColor">
264<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265<CODE>&nbsp;void</CODE></FONT></TD>
266<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#setCache(boolean)">setCache</A></B>(boolean&nbsp;cache)</CODE>
267
268<BR>
269&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
270</TR>
271<TR BGCOLOR="white" CLASS="TableRowColor">
272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273<CODE>&nbsp;void</CODE></FONT></TD>
274<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#setCacheSep(boolean)">setCacheSep</A></B>(boolean&nbsp;cacheSep)</CODE>
275
276<BR>
277&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>&nbsp;void</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#setCost(int)">setCost</A></B>(int&nbsp;cost)</CODE>
283
284<BR>
285&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
286</TR>
287<TR BGCOLOR="white" CLASS="TableRowColor">
288<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
290<TD><CODE><B><A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.html#toString(java.lang.String)">toString</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;field)</CODE>
291
292<BR>
293&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints a user-readable version of this query.</TD>
294</TR>
295</TABLE>
296&nbsp;<A NAME="methods_inherited_from_class_org.apache.lucene.search.ConstantScoreQuery"><!-- --></A>
297<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
298<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
299<TH ALIGN="left"><B>Methods inherited from class org.apache.lucene.search.<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></B></TH>
300</TR>
301<TR BGCOLOR="white" CLASS="TableRowColor">
302<TD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#getQuery()" title="class or interface in org.apache.lucene.search">getQuery</A></CODE></TD>
303</TR>
304</TABLE>
305&nbsp;<A NAME="methods_inherited_from_class_org.apache.lucene.search.Query"><!-- --></A>
306<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
307<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
308<TH ALIGN="left"><B>Methods inherited from class org.apache.lucene.search.<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A></B></TH>
309</TR>
310<TR BGCOLOR="white" CLASS="TableRowColor">
311<TD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true#clone()" title="class or interface in org.apache.lucene.search">clone</A>, <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true#getBoost()" title="class or interface in org.apache.lucene.search">getBoost</A>, <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true#setBoost(float)" title="class or interface in org.apache.lucene.search">setBoost</A>, <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true#toString()" title="class or interface in org.apache.lucene.search">toString</A></CODE></TD>
312</TR>
313</TABLE>
314&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
315<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
316<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
317<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
318</TR>
319<TR BGCOLOR="white" CLASS="TableRowColor">
320<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
321</TR>
322</TABLE>
323&nbsp;
324<P>
325
326<!-- ========= CONSTRUCTOR DETAIL ======== -->
327
328<A NAME="constructor_detail"><!-- --></A>
329<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
330<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
331<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
332<B>Constructor Detail</B></FONT></TH>
333</TR>
334</TABLE>
335
336<A NAME="SolrConstantScoreQuery(org.apache.lucene.search.Filter)"><!-- --></A><H3>
337SolrConstantScoreQuery</H3>
338<PRE>
339public <B>SolrConstantScoreQuery</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A>&nbsp;filter)</PRE>
340<DL>
341</DL>
342
343<!-- ============ METHOD DETAIL ========== -->
344
345<A NAME="method_detail"><!-- --></A>
346<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
347<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
348<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
349<B>Method Detail</B></FONT></TH>
350</TR>
351</TABLE>
352
353<A NAME="getFilter()"><!-- --></A><H3>
354getFilter</H3>
355<PRE>
356public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A> <B>getFilter</B>()</PRE>
357<DL>
358<DD>Returns the encapsulated filter
359<P>
360<DD><DL>
361<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#getFilter()" title="class or interface in org.apache.lucene.search">getFilter</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
362</DD>
363<DD><DL>
364</DL>
365</DD>
366</DL>
367<HR>
368
369<A NAME="setCache(boolean)"><!-- --></A><H3>
370setCache</H3>
371<PRE>
372public void <B>setCache</B>(boolean&nbsp;cache)</PRE>
373<DL>
374<DD><DL>
375<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#setCache(boolean)">setCache</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
376</DD>
377<DD><DL>
378</DL>
379</DD>
380</DL>
381<HR>
382
383<A NAME="getCache()"><!-- --></A><H3>
384getCache</H3>
385<PRE>
386public boolean <B>getCache</B>()</PRE>
387<DL>
388<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCache()">ExtendedQuery</A></CODE></B></DD>
389<DD>Should this query be cached in the query cache or filter cache.
390<P>
391<DD><DL>
392<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCache()">getCache</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
393</DD>
394<DD><DL>
395</DL>
396</DD>
397</DL>
398<HR>
399
400<A NAME="setCacheSep(boolean)"><!-- --></A><H3>
401setCacheSep</H3>
402<PRE>
403public void <B>setCacheSep</B>(boolean&nbsp;cacheSep)</PRE>
404<DL>
405<DD><DL>
406<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#setCacheSep(boolean)">setCacheSep</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
407</DD>
408<DD><DL>
409</DL>
410</DD>
411</DL>
412<HR>
413
414<A NAME="getCacheSep()"><!-- --></A><H3>
415getCacheSep</H3>
416<PRE>
417public boolean <B>getCacheSep</B>()</PRE>
418<DL>
419<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCacheSep()">ExtendedQuery</A></CODE></B></DD>
420<DD>If true, the clauses of this boolean query should be cached separately. This is not yet implemented.
421<P>
422<DD><DL>
423<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCacheSep()">getCacheSep</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
424</DD>
425<DD><DL>
426</DL>
427</DD>
428</DL>
429<HR>
430
431<A NAME="setCost(int)"><!-- --></A><H3>
432setCost</H3>
433<PRE>
434public void <B>setCost</B>(int&nbsp;cost)</PRE>
435<DL>
436<DD><DL>
437<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#setCost(int)">setCost</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
438</DD>
439<DD><DL>
440</DL>
441</DD>
442</DL>
443<HR>
444
445<A NAME="getCost()"><!-- --></A><H3>
446getCost</H3>
447<PRE>
448public int <B>getCost</B>()</PRE>
449<DL>
450<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCost()">ExtendedQuery</A></CODE></B></DD>
451<DD>Returns the cost of this query, used to order checking of filters that are not cached.
452 If getCache()==false && getCost()>=100 && this instanceof PostFilter, then
453 the PostFilter interface will be used for filtering.
454<P>
455<DD><DL>
456<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html#getCost()">getCost</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/ExtendedQuery.html" title="interface in org.apache.solr.search">ExtendedQuery</A></CODE></DL>
457</DD>
458<DD><DL>
459</DL>
460</DD>
461</DL>
462<HR>
463
464<A NAME="rewrite(org.apache.lucene.index.IndexReader)"><!-- --></A><H3>
465rewrite</H3>
466<PRE>
467public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Query.html?is-external=true" title="class or interface in org.apache.lucene.search">Query</A> <B>rewrite</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/index/IndexReader.html?is-external=true" title="class or interface in org.apache.lucene.index">IndexReader</A>&nbsp;reader)
468              throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
469<DL>
470<DD><DL>
471<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#rewrite(org.apache.lucene.index.IndexReader)" title="class or interface in org.apache.lucene.search">rewrite</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
472</DD>
473<DD><DL>
474
475<DT><B>Throws:</B>
476<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
477</DD>
478</DL>
479<HR>
480
481<A NAME="extractTerms(java.util.Set)"><!-- --></A><H3>
482extractTerms</H3>
483<PRE>
484public void <B>extractTerms</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&nbsp;terms)</PRE>
485<DL>
486<DD><DL>
487<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#extractTerms(java.util.Set)" title="class or interface in org.apache.lucene.search">extractTerms</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
488</DD>
489<DD><DL>
490</DL>
491</DD>
492</DL>
493<HR>
494
495<A NAME="createWeight(org.apache.lucene.search.IndexSearcher)"><!-- --></A><H3>
496createWeight</H3>
497<PRE>
498public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Weight.html?is-external=true" title="class or interface in org.apache.lucene.search">Weight</A> <B>createWeight</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/IndexSearcher.html?is-external=true" title="class or interface in org.apache.lucene.search">IndexSearcher</A>&nbsp;searcher)</PRE>
499<DL>
500<DD><DL>
501<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#createWeight(org.apache.lucene.search.IndexSearcher)" title="class or interface in org.apache.lucene.search">createWeight</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
502</DD>
503<DD><DL>
504</DL>
505</DD>
506</DL>
507<HR>
508
509<A NAME="toString(java.lang.String)"><!-- --></A><H3>
510toString</H3>
511<PRE>
512public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;field)</PRE>
513<DL>
514<DD>Prints a user-readable version of this query.
515<P>
516<DD><DL>
517<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#toString(java.lang.String)" title="class or interface in org.apache.lucene.search">toString</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
518</DD>
519<DD><DL>
520</DL>
521</DD>
522</DL>
523<HR>
524
525<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
526equals</H3>
527<PRE>
528public boolean <B>equals</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
529<DL>
530<DD>Returns true if <code>o</code> is equal to this.
531<P>
532<DD><DL>
533<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#equals(java.lang.Object)" title="class or interface in org.apache.lucene.search">equals</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
534</DD>
535<DD><DL>
536</DL>
537</DD>
538</DL>
539<HR>
540
541<A NAME="hashCode()"><!-- --></A><H3>
542hashCode</H3>
543<PRE>
544public int <B>hashCode</B>()</PRE>
545<DL>
546<DD>Returns a hash code value for this object.
547<P>
548<DD><DL>
549<DT><B>Overrides:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true#hashCode()" title="class or interface in org.apache.lucene.search">hashCode</A></CODE> in class <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/ConstantScoreQuery.html?is-external=true" title="class or interface in org.apache.lucene.search">ConstantScoreQuery</A></CODE></DL>
550</DD>
551<DD><DL>
552</DL>
553</DD>
554</DL>
555<!-- ========= END OF CLASS DATA ========= -->
556<HR>
557
558
559<!-- ======= START OF BOTTOM NAVBAR ====== -->
560<A NAME="navbar_bottom"><!-- --></A>
561<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
562<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
563<TR>
564<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
565<A NAME="navbar_bottom_firstrow"><!-- --></A>
566<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
567  <TR ALIGN="center" VALIGN="top">
568  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
569  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
570  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
571  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrConstantScoreQuery.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
572  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
573  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
574  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
575  </TR>
576</TABLE>
577</TD>
578<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
579</EM>
580</TD>
581</TR>
582
583<TR>
584<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
585&nbsp;<A HREF="../../../../org/apache/solr/search/SolrCacheBase.AutoWarmCountRef.html" title="class in org.apache.solr.search"><B>PREV CLASS</B></A>&nbsp;
586&nbsp;<A HREF="../../../../org/apache/solr/search/SolrConstantScoreQuery.ConstantScorer.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD>
587<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
588  <A HREF="../../../../index.html?org/apache/solr/search/SolrConstantScoreQuery.html" target="_top"><B>FRAMES</B></A>  &nbsp;
589&nbsp;<A HREF="SolrConstantScoreQuery.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
590&nbsp;<SCRIPT type="text/javascript">
591  <!--
592  if(window==top) {
593    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
594  }
595  //-->
596</SCRIPT>
597<NOSCRIPT>
598  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
599</NOSCRIPT>
600
601
602</FONT></TD>
603</TR>
604<TR>
605<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
606  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.lucene.search.ConstantScoreQuery">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
607<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
608DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
609</TR>
610</TABLE>
611<A NAME="skip-navbar_bottom"></A>
612<!-- ======== END OF BOTTOM NAVBAR ======= -->
613
614<HR>
615
616          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
617          <script src='../../../../prettify.js' type='text/javascript'></script>
618          <script type='text/javascript'>
619            (function(){
620              var oldonload = window.onload;
621              if (typeof oldonload != 'function') {
622                window.onload = prettyPrint;
623              } else {
624                window.onload = function() {
625                  oldonload();
626                  prettyPrint();
627                }
628              }
629            })();
630          </script>
631       
632</BODY>
633</HTML>
Note: See TracBrowser for help on using the repository browser.