net.conquiris.lucene.document
Interface TextFieldAdder<B extends BaseDocumentBuilder<B>>

All Known Implementing Classes:
BaseDocumentBuilder.DocTextFieldBuilder

public interface TextFieldAdder<B extends BaseDocumentBuilder<B>>

Base interface for field adders.

Author:
Andres Rodriguez

Method Summary
 B add(Reader reader)
          Adds the field to the document indexed, tokenized but not stored field with the current term vector information..
 B add(String value)
          Adds the field to the document field with the current information and the provided value.
 B add(TokenStream tokenStream)
          Adds the field to the document indexed, tokenized but not stored field with the current term vector information..
 

Method Detail

add

B add(String value)
Adds the field to the document field with the current information and the provided value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(Reader reader)
Adds the field to the document indexed, tokenized but not stored field with the current term vector information..

Parameters:
reader - Field value reader.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(TokenStream tokenStream)
Adds the field to the document indexed, tokenized but not stored field with the current term vector information..

Parameters:
tokenStream - Field value token stream.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.


Copyright © 2013 Derquinse Projects. All Rights Reserved.