source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html @ 7588

Revision 7588, 13.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:25 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8PreAnalyzedField.PreAnalyzedParser (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="PreAnalyzedField.PreAnalyzedParser (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/PreAnalyzedField.PreAnalyzedParser.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/schema/PreAnalyzedField.ParseResult.html" title="class in org.apache.solr.schema"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/schema/PrimitiveFieldType.html" title="class in org.apache.solr.schema"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="PreAnalyzedField.PreAnalyzedParser.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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.schema</FONT>
92<BR>
93Interface PreAnalyzedField.PreAnalyzedParser</H2>
94<DL>
95<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/solr/schema/JsonPreAnalyzedParser.html" title="class in org.apache.solr.schema">JsonPreAnalyzedParser</A>, <A HREF="../../../../org/apache/solr/schema/SimplePreAnalyzedParser.html" title="class in org.apache.solr.schema">SimplePreAnalyzedParser</A></DD>
96</DL>
97<DL>
98<DT><B>Enclosing class:</B><DD><A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.html" title="class in org.apache.solr.schema">PreAnalyzedField</A></DD>
99</DL>
100<HR>
101<DL>
102<DT><PRE>public static interface <B>PreAnalyzedField.PreAnalyzedParser</B></DL>
103</PRE>
104
105<P>
106Parse the input and return the stored part and the tokens with attributes.
107<P>
108
109<P>
110<HR>
111
112<P>
113
114<!-- ========== METHOD SUMMARY =========== -->
115
116<A NAME="method_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
120<B>Method Summary</B></FONT></TH>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124<CODE>&nbsp;<A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.ParseResult.html" title="class in org.apache.solr.schema">PreAnalyzedField.ParseResult</A></CODE></FONT></TD>
125<TD><CODE><B><A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html#parse(java.io.Reader, org.apache.lucene.util.AttributeSource)">parse</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;reader,
126      <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/AttributeSource.html?is-external=true" title="class or interface in org.apache.lucene.util">AttributeSource</A>&nbsp;parent)</CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse input.</TD>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133<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>
134<TD><CODE><B><A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html#toFormattedString(org.apache.lucene.document.Field)">toFormattedString</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Field.html?is-external=true" title="class or interface in org.apache.lucene.document">Field</A>&nbsp;f)</CODE>
135
136<BR>
137&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Format a field so that the resulting String is valid for parsing with <A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html#parse(java.io.Reader, org.apache.lucene.util.AttributeSource)"><CODE>parse(Reader, AttributeSource)</CODE></A>.</TD>
138</TR>
139</TABLE>
140&nbsp;
141<P>
142
143<!-- ============ METHOD DETAIL ========== -->
144
145<A NAME="method_detail"><!-- --></A>
146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
148<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
149<B>Method Detail</B></FONT></TH>
150</TR>
151</TABLE>
152
153<A NAME="parse(java.io.Reader, org.apache.lucene.util.AttributeSource)"><!-- --></A><H3>
154parse</H3>
155<PRE>
156<A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.ParseResult.html" title="class in org.apache.solr.schema">PreAnalyzedField.ParseResult</A> <B>parse</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;reader,
157                                   <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/AttributeSource.html?is-external=true" title="class or interface in org.apache.lucene.util">AttributeSource</A>&nbsp;parent)
158                                   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>
159<DL>
160<DD>Parse input.
161<P>
162<DD><DL>
163<DT><B>Parameters:</B><DD><CODE>reader</CODE> - input to read from<DD><CODE>parent</CODE> - parent who will own the resulting states (tokens with attributes)
164<DT><B>Returns:</B><DD>parse result, with possibly null stored and/or states fields.
165<DT><B>Throws:</B>
166<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> - if a parsing error or IO error occurs</DL>
167</DD>
168</DL>
169<HR>
170
171<A NAME="toFormattedString(org.apache.lucene.document.Field)"><!-- --></A><H3>
172toFormattedString</H3>
173<PRE>
174<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>toFormattedString</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/document/Field.html?is-external=true" title="class or interface in org.apache.lucene.document">Field</A>&nbsp;f)
175                         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>
176<DL>
177<DD>Format a field so that the resulting String is valid for parsing with <A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html#parse(java.io.Reader, org.apache.lucene.util.AttributeSource)"><CODE>parse(Reader, AttributeSource)</CODE></A>.
178<P>
179<DD><DL>
180<DT><B>Parameters:</B><DD><CODE>f</CODE> - field instance
181<DT><B>Returns:</B><DD>formatted string
182<DT><B>Throws:</B>
183<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>
184</DD>
185</DL>
186<!-- ========= END OF CLASS DATA ========= -->
187<HR>
188
189
190<!-- ======= START OF BOTTOM NAVBAR ====== -->
191<A NAME="navbar_bottom"><!-- --></A>
192<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
193<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
194<TR>
195<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
196<A NAME="navbar_bottom_firstrow"><!-- --></A>
197<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
198  <TR ALIGN="center" VALIGN="top">
199  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
200  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
201  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
202  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PreAnalyzedField.PreAnalyzedParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
203  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
204  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
205  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
206  </TR>
207</TABLE>
208</TD>
209<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
210</EM>
211</TD>
212</TR>
213
214<TR>
215<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
216&nbsp;<A HREF="../../../../org/apache/solr/schema/PreAnalyzedField.ParseResult.html" title="class in org.apache.solr.schema"><B>PREV CLASS</B></A>&nbsp;
217&nbsp;<A HREF="../../../../org/apache/solr/schema/PrimitiveFieldType.html" title="class in org.apache.solr.schema"><B>NEXT CLASS</B></A></FONT></TD>
218<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
219  <A HREF="../../../../index.html?org/apache/solr/schema/PreAnalyzedField.PreAnalyzedParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;
220&nbsp;<A HREF="PreAnalyzedField.PreAnalyzedParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
221&nbsp;<SCRIPT type="text/javascript">
222  <!--
223  if(window==top) {
224    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
225  }
226  //-->
227</SCRIPT>
228<NOSCRIPT>
229  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
230</NOSCRIPT>
231
232
233</FONT></TD>
234</TR>
235<TR>
236<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
237  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
238<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
239DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
240</TR>
241</TABLE>
242<A NAME="skip-navbar_bottom"></A>
243<!-- ======== END OF BOTTOM NAVBAR ======= -->
244
245<HR>
246
247          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
248          <script src='../../../../prettify.js' type='text/javascript'></script>
249          <script type='text/javascript'>
250            (function(){
251              var oldonload = window.onload;
252              if (typeof oldonload != 'function') {
253                window.onload = prettyPrint;
254              } else {
255                window.onload = function() {
256                  oldonload();
257                  prettyPrint();
258                }
259              }
260            })();
261          </script>
262       
263</BODY>
264</HTML>
Note: See TracBrowser for help on using the repository browser.