net.sf.mmapps.modules.lucenesearch
Class DataField
java.lang.Object
net.sf.mmapps.modules.lucenesearch.DataField
- public class DataField
- extends java.lang.Object
Field object that holds the name and type of the field to be indexed
- Version:
- $Revision: 1.1 $
- Author:
- Wouter Heijke, R.W. van 't Veer
Method Summary |
protected org.apache.lucene.document.Field |
collectField(org.mmbase.bridge.Node node)
Collect the content from the field this object represents in a Lucene Field object |
java.lang.String |
getFieldName()
|
java.lang.String |
getName()
|
java.lang.String |
getRename()
|
java.lang.String |
getType()
|
boolean |
isFulltext()
|
void |
setFulltext(boolean v)
|
void |
setName(java.lang.String name)
|
void |
setRename(java.lang.String name)
|
void |
setType(java.lang.String type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataField
public DataField()
collectField
protected org.apache.lucene.document.Field collectField(org.mmbase.bridge.Node node)
throws java.io.IOException
- Collect the content from the field this object represents in a Lucene Field object
- Parameters:
node
- Node to collect fields from
- Returns:
- Field filled with content and ready to be indexed
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Returns:
- The name of this Field
setName
public void setName(java.lang.String name)
- Parameters:
name
-
getType
public java.lang.String getType()
- Returns:
- The type of this Field
setType
public void setType(java.lang.String type)
- Parameters:
type
-
getRename
public java.lang.String getRename()
- Returns:
- Name of the renamed name of the current field
setRename
public void setRename(java.lang.String name)
- Parameters:
name
-
getFieldName
public java.lang.String getFieldName()
- Returns:
- Field name (renamed or plain) of this field
isFulltext
public boolean isFulltext()
- Returns:
- true if this field is a FULLTEXT field
setFulltext
public void setFulltext(boolean v)
- Parameters:
v
-
Copyright © 2003-2005 mmapps. All Rights Reserved.