org.apache.cocoon.components.search.fieldmodel
Class StringFieldDefinition

java.lang.Object
  extended by org.apache.cocoon.components.search.fieldmodel.FieldDefinition
      extended by org.apache.cocoon.components.search.fieldmodel.StringFieldDefinition

public final class StringFieldDefinition
extends FieldDefinition

String Field Definition (used for Text and Keyword type)

Author:
Nicolas Maisonneuve

Field Summary
 
Fields inherited from class org.apache.cocoon.components.search.fieldmodel.FieldDefinition
DATE, index, KEYWORD, name, store, STRING_TYPE, TEXT, type
 
Constructor Summary
StringFieldDefinition(java.lang.String name, int type)
           
 
Method Summary
 org.apache.lucene.document.Field createLField(java.lang.String value)
          Create a Lucene Field
 
Methods inherited from class org.apache.cocoon.components.search.fieldmodel.FieldDefinition
create, equals, equals, getStore, getType, hashCode, name, setStore, stringTotype, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringFieldDefinition

public StringFieldDefinition(java.lang.String name,
                             int type)
Method Detail

createLField

public final org.apache.lucene.document.Field createLField(java.lang.String value)
Create a Lucene Field

Specified by:
createLField in class FieldDefinition
Parameters:
value - value to index
Returns:
See Also:
Field


Copyright $ Apache Software Foundation. All Rights Reserved.