source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/core/AbstractSolrEventListener.html @ 7588

Revision 7588, 25.0 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:24 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8AbstractSolrEventListener (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="AbstractSolrEventListener (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/AbstractSolrEventListener.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;PREV CLASS&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/core/AbstractSolrEventListener.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="AbstractSolrEventListener.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;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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.core</FONT>
92<BR>
93Class AbstractSolrEventListener</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 "><B>org.apache.solr.core.AbstractSolrEventListener</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A>, <A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</A></DD>
100</DL>
101<DL>
102<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/solr/core/QuerySenderListener.html" title="class in org.apache.solr.core">QuerySenderListener</A></DD>
103</DL>
104<HR>
105<DL>
106<DT><PRE>public class <B>AbstractSolrEventListener</B><DT>extends <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><DT>implements <A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A></DL>
107</PRE>
108
109<P>
110<HR>
111
112<P>
113<!-- =========== FIELD SUMMARY =========== -->
114
115<A NAME="field_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119<B>Field Summary</B></FONT></TH>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123<CODE>protected &nbsp;<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A></CODE></FONT></TD>
124<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#args">args</A></B></CODE>
125
126<BR>
127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131<CODE>protected &nbsp;<A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A></CODE></FONT></TD>
132<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#core">core</A></B></CODE>
133
134<BR>
135&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
136</TR>
137</TABLE>
138&nbsp;<A NAME="fields_inherited_from_class_org.apache.solr.core.SolrEventListener"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
141<TH ALIGN="left"><B>Fields inherited from interface org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A></B></TH>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD><CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html#log">log</A></CODE></TD>
145</TR>
146</TABLE>
147&nbsp;
148<!-- ======== CONSTRUCTOR SUMMARY ======== -->
149
150<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#AbstractSolrEventListener(org.apache.solr.core.SolrCore)">AbstractSolrEventListener</A></B>(<A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A>&nbsp;core)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162</TABLE>
163&nbsp;
164<!-- ========== METHOD SUMMARY =========== -->
165
166<A NAME="method_summary"><!-- --></A>
167<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
170<B>Method Summary</B></FONT></TH>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174<CODE>protected &nbsp;<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A></CODE></FONT></TD>
175<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)">addEventParms</A></B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;currentSearcher,
176              <A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&nbsp;nlst)</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the <A HREF="../../../../org/apache/solr/common/params/EventParams.html#EVENT"><CODE>EventParams.EVENT</CODE></A> with either the <A HREF="../../../../org/apache/solr/common/params/EventParams.html#NEW_SEARCHER"><CODE>EventParams.NEW_SEARCHER</CODE></A>
180 or <A HREF="../../../../org/apache/solr/common/params/EventParams.html#FIRST_SEARCHER"><CODE>EventParams.FIRST_SEARCHER</CODE></A> values depending on the value of currentSearcher.</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;void</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#init(org.apache.solr.common.util.NamedList)">init</A></B>(<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&nbsp;args)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;void</CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#newSearcher(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrIndexSearcher)">newSearcher</A></B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;newSearcher,
194            <A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;currentSearcher)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The searchers passed here are only guaranteed to be valid for the duration
198 of this method call, so care should be taken not to spawn threads or asynchronous
199 tasks with references to these searchers.</TD>
200</TR>
201<TR BGCOLOR="white" CLASS="TableRowColor">
202<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203<CODE>&nbsp;void</CODE></FONT></TD>
204<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#postCommit()">postCommit</A></B>()</CODE>
205
206<BR>
207&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
208</TR>
209<TR BGCOLOR="white" CLASS="TableRowColor">
210<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211<CODE>&nbsp;void</CODE></FONT></TD>
212<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#postSoftCommit()">postSoftCommit</A></B>()</CODE>
213
214<BR>
215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
216</TR>
217<TR BGCOLOR="white" CLASS="TableRowColor">
218<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219<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>
220<TD><CODE><B><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#toString()">toString</A></B>()</CODE>
221
222<BR>
223&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
224</TR>
225</TABLE>
226&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
227<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
228<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
229<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>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <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#hashCode()" title="class or interface in java.lang">hashCode</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>
233</TR>
234</TABLE>
235&nbsp;
236<P>
237
238<!-- ============ FIELD DETAIL =========== -->
239
240<A NAME="field_detail"><!-- --></A>
241<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
243<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
244<B>Field Detail</B></FONT></TH>
245</TR>
246</TABLE>
247
248<A NAME="core"><!-- --></A><H3>
249core</H3>
250<PRE>
251protected final <A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A> <B>core</B></PRE>
252<DL>
253<DL>
254</DL>
255</DL>
256<HR>
257
258<A NAME="args"><!-- --></A><H3>
259args</H3>
260<PRE>
261protected <A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A> <B>args</B></PRE>
262<DL>
263<DL>
264</DL>
265</DL>
266
267<!-- ========= CONSTRUCTOR DETAIL ======== -->
268
269<A NAME="constructor_detail"><!-- --></A>
270<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
271<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
272<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
273<B>Constructor Detail</B></FONT></TH>
274</TR>
275</TABLE>
276
277<A NAME="AbstractSolrEventListener(org.apache.solr.core.SolrCore)"><!-- --></A><H3>
278AbstractSolrEventListener</H3>
279<PRE>
280public <B>AbstractSolrEventListener</B>(<A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A>&nbsp;core)</PRE>
281<DL>
282</DL>
283
284<!-- ============ METHOD DETAIL ========== -->
285
286<A NAME="method_detail"><!-- --></A>
287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
289<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
290<B>Method Detail</B></FONT></TH>
291</TR>
292</TABLE>
293
294<A NAME="init(org.apache.solr.common.util.NamedList)"><!-- --></A><H3>
295init</H3>
296<PRE>
297public void <B>init</B>(<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&nbsp;args)</PRE>
298<DL>
299<DD><DL>
300<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html#init(org.apache.solr.common.util.NamedList)">init</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</A></CODE></DL>
301</DD>
302<DD><DL>
303</DL>
304</DD>
305</DL>
306<HR>
307
308<A NAME="postCommit()"><!-- --></A><H3>
309postCommit</H3>
310<PRE>
311public void <B>postCommit</B>()</PRE>
312<DL>
313<DD><DL>
314<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html#postCommit()">postCommit</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A></CODE></DL>
315</DD>
316<DD><DL>
317</DL>
318</DD>
319</DL>
320<HR>
321
322<A NAME="postSoftCommit()"><!-- --></A><H3>
323postSoftCommit</H3>
324<PRE>
325public void <B>postSoftCommit</B>()</PRE>
326<DL>
327<DD><DL>
328<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html#postSoftCommit()">postSoftCommit</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A></CODE></DL>
329</DD>
330<DD><DL>
331</DL>
332</DD>
333</DL>
334<HR>
335
336<A NAME="newSearcher(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrIndexSearcher)"><!-- --></A><H3>
337newSearcher</H3>
338<PRE>
339public void <B>newSearcher</B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;newSearcher,
340                        <A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;currentSearcher)</PRE>
341<DL>
342<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html#newSearcher(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrIndexSearcher)">SolrEventListener</A></CODE></B></DD>
343<DD>The searchers passed here are only guaranteed to be valid for the duration
344 of this method call, so care should be taken not to spawn threads or asynchronous
345 tasks with references to these searchers.
346 <p/>
347 Implementations should add the <A HREF="../../../../org/apache/solr/common/params/EventParams.html#EVENT"><CODE>EventParams.EVENT</CODE></A> parameter and set it to a value of either:
348 <ul>
349 <li><A HREF="../../../../org/apache/solr/common/params/EventParams.html#FIRST_SEARCHER"><CODE>EventParams.FIRST_SEARCHER</CODE></A> - First Searcher event</li>
350 <li><A HREF="../../../../org/apache/solr/common/params/EventParams.html#NEW_SEARCHER"><CODE>EventParams.NEW_SEARCHER</CODE></A> - New Searcher event</li>
351 </ul>
352
353 Sample:
354 <pre>
355    if (currentSearcher != null) {
356      nlst.add(CommonParams.EVENT, CommonParams.NEW_SEARCHER);
357    } else {
358      nlst.add(CommonParams.EVENT, CommonParams.FIRST_SEARCHER);
359    }
360
361 </pre>
362<P>
363<DD><DL>
364<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html#newSearcher(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.SolrIndexSearcher)">newSearcher</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/core/SolrEventListener.html" title="interface in org.apache.solr.core">SolrEventListener</A></CODE></DL>
365</DD>
366<DD><DL>
367<DT><B>Parameters:</B><DD><CODE>newSearcher</CODE> - The new <A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search"><CODE>SolrIndexSearcher</CODE></A> to use<DD><CODE>currentSearcher</CODE> - The existing <A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search"><CODE>SolrIndexSearcher</CODE></A>.  null if this is a firstSearcher event.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/core/AbstractSolrEventListener.html#addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)"><CODE>addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)</CODE></A></DL>
368</DD>
369</DL>
370<HR>
371
372<A NAME="toString()"><!-- --></A><H3>
373toString</H3>
374<PRE>
375public <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>()</PRE>
376<DL>
377<DD><DL>
378<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><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></CODE></DL>
379</DD>
380<DD><DL>
381</DL>
382</DD>
383</DL>
384<HR>
385
386<A NAME="addEventParms(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.common.util.NamedList)"><!-- --></A><H3>
387addEventParms</H3>
388<PRE>
389protected <A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A> <B>addEventParms</B>(<A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">SolrIndexSearcher</A>&nbsp;currentSearcher,
390                                  <A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&nbsp;nlst)</PRE>
391<DL>
392<DD>Add the <A HREF="../../../../org/apache/solr/common/params/EventParams.html#EVENT"><CODE>EventParams.EVENT</CODE></A> with either the <A HREF="../../../../org/apache/solr/common/params/EventParams.html#NEW_SEARCHER"><CODE>EventParams.NEW_SEARCHER</CODE></A>
393 or <A HREF="../../../../org/apache/solr/common/params/EventParams.html#FIRST_SEARCHER"><CODE>EventParams.FIRST_SEARCHER</CODE></A> values depending on the value of currentSearcher.
394 <p/>
395 Makes a copy of NamedList and then adds the parameters.
396<P>
397<DD><DL>
398</DL>
399</DD>
400<DD><DL>
401<DT><B>Parameters:</B><DD><CODE>currentSearcher</CODE> - If null, add FIRST_SEARCHER, otherwise NEW_SEARCHER<DD><CODE>nlst</CODE> - The named list to add the EVENT value to</DL>
402</DD>
403</DL>
404<!-- ========= END OF CLASS DATA ========= -->
405<HR>
406
407
408<!-- ======= START OF BOTTOM NAVBAR ====== -->
409<A NAME="navbar_bottom"><!-- --></A>
410<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
411<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
412<TR>
413<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
414<A NAME="navbar_bottom_firstrow"><!-- --></A>
415<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
416  <TR ALIGN="center" VALIGN="top">
417  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
418  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
419  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
420  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractSolrEventListener.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
421  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
422  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
423  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
424  </TR>
425</TABLE>
426</TD>
427<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
428</EM>
429</TD>
430</TR>
431
432<TR>
433<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
434&nbsp;PREV CLASS&nbsp;
435&nbsp;<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
436<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
437  <A HREF="../../../../index.html?org/apache/solr/core/AbstractSolrEventListener.html" target="_top"><B>FRAMES</B></A>  &nbsp;
438&nbsp;<A HREF="AbstractSolrEventListener.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
439&nbsp;<SCRIPT type="text/javascript">
440  <!--
441  if(window==top) {
442    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
443  }
444  //-->
445</SCRIPT>
446<NOSCRIPT>
447  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
448</NOSCRIPT>
449
450
451</FONT></TD>
452</TR>
453<TR>
454<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
455  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
456<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
457DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
458</TR>
459</TABLE>
460<A NAME="skip-navbar_bottom"></A>
461<!-- ======== END OF BOTTOM NAVBAR ======= -->
462
463<HR>
464
465          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
466          <script src='../../../../prettify.js' type='text/javascript'></script>
467          <script type='text/javascript'>
468            (function(){
469              var oldonload = window.onload;
470              if (typeof oldonload != 'function') {
471                window.onload = prettyPrint;
472              } else {
473                window.onload = function() {
474                  oldonload();
475                  prettyPrint();
476                }
477              }
478            })();
479          </script>
480       
481</BODY>
482</HTML>
Note: See TracBrowser for help on using the repository browser.