source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/update/DocumentBuilder.html @ 7588

Revision 7588, 24.2 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>
8DocumentBuilder (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="DocumentBuilder (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/DocumentBuilder.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/update/DirectUpdateHandler2.html" title="class in org.apache.solr.update"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/update/MergeIndexesCommand.html" title="class in org.apache.solr.update"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/update/DocumentBuilder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="DocumentBuilder.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;FIELD&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.update</FONT>
92<BR>
93Class DocumentBuilder</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.update.DocumentBuilder</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>DocumentBuilder</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></DL>
101</PRE>
102
103<P>
104<HR>
105
106<P>
107
108<!-- ======== CONSTRUCTOR SUMMARY ======== -->
109
110<A NAME="constructor_summary"><!-- --></A>
111<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
114<B>Constructor Summary</B></FONT></TH>
115</TR>
116<TR BGCOLOR="white" CLASS="TableRowColor">
117<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#DocumentBuilder(org.apache.solr.schema.IndexSchema)">DocumentBuilder</A></B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A>&nbsp;schema)</CODE>
118
119<BR>
120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
121</TR>
122</TABLE>
123&nbsp;
124<!-- ========== METHOD SUMMARY =========== -->
125
126<A NAME="method_summary"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130<B>Method Summary</B></FONT></TH>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134<CODE>&nbsp;void</CODE></FONT></TD>
135<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(org.apache.solr.schema.SchemaField, java.lang.String, float)">addField</A></B>(<A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema">SchemaField</A>&nbsp;sfield,
136         <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;val,
137         float&nbsp;boost)</CODE>
138
139<BR>
140&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the specified <A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema"><CODE>SchemaField</CODE></A> to the document.</TD>
141</TR>
142<TR BGCOLOR="white" CLASS="TableRowColor">
143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144<CODE>&nbsp;void</CODE></FONT></TD>
145<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String)">addField</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;name,
146         <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;val)</CODE>
147
148<BR>
149&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the Field and value to the document, invoking the copyField mechanism</TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>&nbsp;void</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String, float)">addField</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;name,
155         <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;val,
156         float&nbsp;boost)</CODE>
157
158<BR>
159&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the Field and value to the document with the specified boost, invoking the copyField mechanism</TD>
160</TR>
161<TR BGCOLOR="white" CLASS="TableRowColor">
162<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163<CODE>protected &nbsp;void</CODE></FONT></TD>
164<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addSingleField(org.apache.solr.schema.SchemaField, java.lang.String, float)">addSingleField</A></B>(<A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema">SchemaField</A>&nbsp;sfield,
165               <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;val,
166               float&nbsp;boost)</CODE>
167
168<BR>
169&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170</TR>
171<TR BGCOLOR="white" CLASS="TableRowColor">
172<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173<CODE>&nbsp;void</CODE></FONT></TD>
174<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#endDoc()">endDoc</A></B>()</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE>&nbsp;<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Document.html?is-external=true" title="class or interface in org.apache.lucene.document">Document</A></CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#getDoc()">getDoc</A></B>()</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;void</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#startDoc()">startDoc</A></B>()</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
194</TR>
195<TR BGCOLOR="white" CLASS="TableRowColor">
196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197<CODE>static&nbsp;<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Document.html?is-external=true" title="class or interface in org.apache.lucene.document">Document</A></CODE></FONT></TD>
198<TD><CODE><B><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#toDocument(org.apache.solr.common.SolrInputDocument, org.apache.solr.schema.IndexSchema)">toDocument</A></B>(<A HREF="../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc,
199           <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A>&nbsp;schema)</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a SolrInputDocument to a lucene Document.</TD>
203</TR>
204</TABLE>
205&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
206<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
207<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
208<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>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<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#toString()" title="class or interface in java.lang">toString</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>
212</TR>
213</TABLE>
214&nbsp;
215<P>
216
217<!-- ========= CONSTRUCTOR DETAIL ======== -->
218
219<A NAME="constructor_detail"><!-- --></A>
220<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
221<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
222<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
223<B>Constructor Detail</B></FONT></TH>
224</TR>
225</TABLE>
226
227<A NAME="DocumentBuilder(org.apache.solr.schema.IndexSchema)"><!-- --></A><H3>
228DocumentBuilder</H3>
229<PRE>
230public <B>DocumentBuilder</B>(<A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A>&nbsp;schema)</PRE>
231<DL>
232</DL>
233
234<!-- ============ METHOD DETAIL ========== -->
235
236<A NAME="method_detail"><!-- --></A>
237<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
238<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
239<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
240<B>Method Detail</B></FONT></TH>
241</TR>
242</TABLE>
243
244<A NAME="startDoc()"><!-- --></A><H3>
245startDoc</H3>
246<PRE>
247public void <B>startDoc</B>()</PRE>
248<DL>
249<DD><DL>
250</DL>
251</DD>
252</DL>
253<HR>
254
255<A NAME="addSingleField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><!-- --></A><H3>
256addSingleField</H3>
257<PRE>
258protected void <B>addSingleField</B>(<A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema">SchemaField</A>&nbsp;sfield,
259                              <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;val,
260                              float&nbsp;boost)</PRE>
261<DL>
262<DD><DL>
263</DL>
264</DD>
265</DL>
266<HR>
267
268<A NAME="addField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><!-- --></A><H3>
269addField</H3>
270<PRE>
271public void <B>addField</B>(<A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema">SchemaField</A>&nbsp;sfield,
272                     <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;val,
273                     float&nbsp;boost)</PRE>
274<DL>
275<DD>Add the specified <A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema"><CODE>SchemaField</CODE></A> to the document.  Does not invoke the copyField mechanism.
276<P>
277<DD><DL>
278<DT><B>Parameters:</B><DD><CODE>sfield</CODE> - The <A HREF="../../../../org/apache/solr/schema/SchemaField.html" title="class in org.apache.solr.schema"><CODE>SchemaField</CODE></A> to add<DD><CODE>val</CODE> - The value to add<DD><CODE>boost</CODE> - The boost factor<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String)"><CODE>addField(String, String)</CODE></A>,
279<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String, float)"><CODE>addField(String, String, float)</CODE></A>,
280<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addSingleField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><CODE>addSingleField(org.apache.solr.schema.SchemaField, String, float)</CODE></A></DL>
281</DD>
282</DL>
283<HR>
284
285<A NAME="addField(java.lang.String, java.lang.String)"><!-- --></A><H3>
286addField</H3>
287<PRE>
288public void <B>addField</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;name,
289                     <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;val)</PRE>
290<DL>
291<DD>Add the Field and value to the document, invoking the copyField mechanism
292<P>
293<DD><DL>
294<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the field<DD><CODE>val</CODE> - The value to add<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String, float)"><CODE>addField(String, String, float)</CODE></A>,
295<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><CODE>addField(org.apache.solr.schema.SchemaField, String, float)</CODE></A>,
296<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addSingleField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><CODE>addSingleField(org.apache.solr.schema.SchemaField, String, float)</CODE></A></DL>
297</DD>
298</DL>
299<HR>
300
301<A NAME="addField(java.lang.String, java.lang.String, float)"><!-- --></A><H3>
302addField</H3>
303<PRE>
304public void <B>addField</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;name,
305                     <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;val,
306                     float&nbsp;boost)</PRE>
307<DL>
308<DD>Add the Field and value to the document with the specified boost, invoking the copyField mechanism
309<P>
310<DD><DL>
311<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the field.<DD><CODE>val</CODE> - The value to add<DD><CODE>boost</CODE> - The boost<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(java.lang.String, java.lang.String)"><CODE>addField(String, String)</CODE></A>,
312<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><CODE>addField(org.apache.solr.schema.SchemaField, String, float)</CODE></A>,
313<A HREF="../../../../org/apache/solr/update/DocumentBuilder.html#addSingleField(org.apache.solr.schema.SchemaField, java.lang.String, float)"><CODE>addSingleField(org.apache.solr.schema.SchemaField, String, float)</CODE></A></DL>
314</DD>
315</DL>
316<HR>
317
318<A NAME="endDoc()"><!-- --></A><H3>
319endDoc</H3>
320<PRE>
321public void <B>endDoc</B>()</PRE>
322<DL>
323<DD><DL>
324</DL>
325</DD>
326</DL>
327<HR>
328
329<A NAME="getDoc()"><!-- --></A><H3>
330getDoc</H3>
331<PRE>
332public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Document.html?is-external=true" title="class or interface in org.apache.lucene.document">Document</A> <B>getDoc</B>()
333                throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
334<DL>
335<DD><DL>
336
337<DT><B>Throws:</B>
338<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE></DL>
339</DD>
340</DL>
341<HR>
342
343<A NAME="toDocument(org.apache.solr.common.SolrInputDocument, org.apache.solr.schema.IndexSchema)"><!-- --></A><H3>
344toDocument</H3>
345<PRE>
346public static <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Document.html?is-external=true" title="class or interface in org.apache.lucene.document">Document</A> <B>toDocument</B>(<A HREF="../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc,
347                                  <A HREF="../../../../org/apache/solr/schema/IndexSchema.html" title="class in org.apache.solr.schema">IndexSchema</A>&nbsp;schema)</PRE>
348<DL>
349<DD>Convert a SolrInputDocument to a lucene Document.
350 
351 This function should go elsewhere.  This builds the Document without an
352 extra Map<> checking for multiple values.  For more discussion, see:
353 http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--tf3931539.html
354 
355 TODO: /!\ NOTE /!\ This semantics of this function are still in flux. 
356 Something somewhere needs to be able to fill up a SolrDocument from
357 a lucene document - this is one place that may happen.  It may also be
358 moved to an independent function
359<P>
360<DD><DL>
361<DT><B>Since:</B></DT>
362  <DD>solr 1.3</DD>
363</DL>
364</DD>
365</DL>
366<!-- ========= END OF CLASS DATA ========= -->
367<HR>
368
369
370<!-- ======= START OF BOTTOM NAVBAR ====== -->
371<A NAME="navbar_bottom"><!-- --></A>
372<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
373<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
374<TR>
375<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
376<A NAME="navbar_bottom_firstrow"><!-- --></A>
377<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
378  <TR ALIGN="center" VALIGN="top">
379  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
380  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
381  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
382  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DocumentBuilder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
383  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
384  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
385  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
386  </TR>
387</TABLE>
388</TD>
389<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
390</EM>
391</TD>
392</TR>
393
394<TR>
395<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
396&nbsp;<A HREF="../../../../org/apache/solr/update/DirectUpdateHandler2.html" title="class in org.apache.solr.update"><B>PREV CLASS</B></A>&nbsp;
397&nbsp;<A HREF="../../../../org/apache/solr/update/MergeIndexesCommand.html" title="class in org.apache.solr.update"><B>NEXT CLASS</B></A></FONT></TD>
398<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
399  <A HREF="../../../../index.html?org/apache/solr/update/DocumentBuilder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
400&nbsp;<A HREF="DocumentBuilder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
401&nbsp;<SCRIPT type="text/javascript">
402  <!--
403  if(window==top) {
404    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
405  }
406  //-->
407</SCRIPT>
408<NOSCRIPT>
409  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
410</NOSCRIPT>
411
412
413</FONT></TD>
414</TR>
415<TR>
416<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
417  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
418<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
419DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
420</TR>
421</TABLE>
422<A NAME="skip-navbar_bottom"></A>
423<!-- ======== END OF BOTTOM NAVBAR ======= -->
424
425<HR>
426
427          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
428          <script src='../../../../prettify.js' type='text/javascript'></script>
429          <script type='text/javascript'>
430            (function(){
431              var oldonload = window.onload;
432              if (typeof oldonload != 'function') {
433                window.onload = prettyPrint;
434              } else {
435                window.onload = function() {
436                  oldonload();
437                  prettyPrint();
438                }
439              }
440            })();
441          </script>
442       
443</BODY>
444</HTML>
Note: See TracBrowser for help on using the repository browser.