field.html
来自「 Lucene是apache软件基金会[4] jakarta项目组的一个子项目」· HTML 代码 · 共 506 行 · 第 1/3 页
HTML
506 行
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#Field(java.lang.String, byte[], org.apache.lucene.document.Field.Store)">Field</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, byte[] value, <A HREF="../../../../org/apache/lucene/document/Field.Store.html" title="class in org.apache.lucene.document">Field.Store</A> store)</CODE>
<BR>
Create a stored field with binary value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#Field(java.lang.String, java.io.Reader)">Field</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A> reader)</CODE>
<BR>
Create a tokenized and indexed field that is not stored.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#Field(java.lang.String, java.io.Reader, org.apache.lucene.document.Field.TermVector)">Field</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A> reader, <A HREF="../../../../org/apache/lucene/document/Field.TermVector.html" title="class in org.apache.lucene.document">Field.TermVector</A> termVector)</CODE>
<BR>
Create a tokenized and indexed field that is not stored, optionally with storing term vectors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#Field(java.lang.String, java.lang.String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index)">Field</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, <A HREF="../../../../org/apache/lucene/document/Field.Store.html" title="class in org.apache.lucene.document">Field.Store</A> store, <A HREF="../../../../org/apache/lucene/document/Field.Index.html" title="class in org.apache.lucene.document">Field.Index</A> index)</CODE>
<BR>
Create a field by specifying its name, value and how it will be saved in the index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#Field(java.lang.String, java.lang.String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index, org.apache.lucene.document.Field.TermVector)">Field</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, <A HREF="../../../../org/apache/lucene/document/Field.Store.html" title="class in org.apache.lucene.document">Field.Store</A> store, <A HREF="../../../../org/apache/lucene/document/Field.Index.html" title="class in org.apache.lucene.document">Field.Index</A> index, <A HREF="../../../../org/apache/lucene/document/Field.TermVector.html" title="class in org.apache.lucene.document">Field.TermVector</A> termVector)</CODE>
<BR>
Create a field by specifying its name, value and how it will be saved in the index.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#binaryValue()">binaryValue</A></B>()</CODE>
<BR>
The value of the field in Binary, or null.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#readerValue()">readerValue</A></B>()</CODE>
<BR>
The value of the field as a Reader, or null.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/lucene/document/Field.html#stringValue()">stringValue</A></B>()</CODE>
<BR>
The value of the field as a String, or null.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.apache.lucene.document.AbstractField"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class org.apache.lucene.document.<A HREF="../../../../org/apache/lucene/document/AbstractField.html" title="class in org.apache.lucene.document">AbstractField</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/lucene/document/AbstractField.html#getBoost()">getBoost</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#getOmitNorms()">getOmitNorms</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isBinary()">isBinary</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isCompressed()">isCompressed</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isIndexed()">isIndexed</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isLazy()">isLazy</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isStored()">isStored</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isStoreOffsetWithTermVector()">isStoreOffsetWithTermVector</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isStorePositionWithTermVector()">isStorePositionWithTermVector</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isTermVectorStored()">isTermVectorStored</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#isTokenized()">isTokenized</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#name()">name</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#setBoost(float)">setBoost</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#setOmitNorms(boolean)">setOmitNorms</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#setStoreTermVector(org.apache.lucene.document.Field.TermVector)">setStoreTermVector</A>, <A HREF="../../../../org/apache/lucene/document/AbstractField.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.apache.lucene.document.Fieldable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface org.apache.lucene.document.<A HREF="../../../../org/apache/lucene/document/Fieldable.html" title="interface in org.apache.lucene.document">Fieldable</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/lucene/document/Fieldable.html#getBoost()">getBoost</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#getOmitNorms()">getOmitNorms</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isBinary()">isBinary</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isCompressed()">isCompressed</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isIndexed()">isIndexed</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isLazy()">isLazy</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isStored()">isStored</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isStoreOffsetWithTermVector()">isStoreOffsetWithTermVector</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isStorePositionWithTermVector()">isStorePositionWithTermVector</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isTermVectorStored()">isTermVectorStored</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#isTokenized()">isTokenized</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#name()">name</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#setBoost(float)">setBoost</A>, <A HREF="../../../../org/apache/lucene/document/Fieldable.html#setOmitNorms(boolean)">setOmitNorms</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Field(java.lang.String, java.lang.String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index)"><!-- --></A><H3>
Field</H3>
<PRE>
public <B>Field</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, <A HREF="../../../../org/apache/lucene/document/Field.Store.html" title="class in org.apache.lucene.document">Field.Store</A> store, <A HREF="../../../../org/apache/lucene/document/Field.Index.html" title="class in org.apache.lucene.document">Field.Index</A> index)</PRE>
<DL>
<DD>Create a field by specifying its name, value and how it will be saved in the index. Term vectors will not be stored in the index.
<P>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the field<DD><CODE>value</CODE> - The string to process<DD><CODE>store</CODE> - Whether <code>value</code> should be stored in the index<DD><CODE>index</CODE> - Whether the field should be indexed, and if so, if it should be tokenized before indexing<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if name or value is <code>null</code><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the field is neither stored nor indexed</DL>
<HR>
<A NAME="Field(java.lang.String, java.lang.String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index, org.apache.lucene.document.Field.TermVector)"><!-- --></A><H3>
Field</H3>
<PRE>
public <B>Field</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value, <A HREF="../../../../org/apache/lucene/document/Field.Store.html" title="class in org.apache.lucene.document">Field.Store</A> store, <A HREF="../../../../org/apache/lucene/document/Field.Index.html" title="class in org.apache.lucene.document">Field.Index</A> index, <A HREF="../../../../org/apache/lucene/document/Field.TermVector.html" title="class in org.apache.lucene.document">Field.TermVector</A> termVector)</PRE>
<DL>
<DD>Create a field by specifying its name, value and how it will be saved in the index.
<P>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the field<DD><CODE>value</CODE> - The string to process<DD><CODE>store</CODE> - Whether <code>value</code> should be stored in the index<DD><CODE>index</CODE> - Whether the field should be indexed, and if so, if it should be tokenized before indexing<DD><CODE>termVector</CODE> - Whether term vector should be stored<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if name or value is <code>null</code><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - in any of the following situations: <ul> <li>the field is neither stored nor indexed</li> <li>the field is not indexed but termVector is <code>TermVector.YES</code></li> </ul></DL>
<HR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?