|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexableField
Represents a single field for indexing. IndexWriter
consumes Iterable
Method Summary
BytesRef
binaryValue()
Non-null if this field has a binary value
float
boost()
Field boost (you must pre-multiply in any doc boost).
IndexableFieldType
fieldType()
IndexableFieldType
describing the properties
of this field.
String
name()
Field name
Number
numericValue()
Non-null if this field has a numeric value
Reader
readerValue()
Non-null if this field has a Reader value
String
stringValue()
Non-null if this field has a string value
TokenStream
tokenStream(Analyzer analyzer)
Creates the TokenStream used for indexing this field.
Method Detail
name
String name()
fieldType
IndexableFieldType fieldType()
IndexableFieldType
describing the properties
of this field.
boost
float boost()
binaryValue
BytesRef binaryValue()
stringValue
String stringValue()
readerValue
Reader readerValue()
numericValue
Number numericValue()
tokenStream
TokenStream tokenStream(Analyzer analyzer)
throws IOException
analyzer
- Analyzer that should be used to create the TokenStreams from
IOException
- Can be thrown while creating the TokenStream
Overview
Package
Class
Use
Tree
Deprecated
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.