org.apache.lucene.gdata.search.analysis
Class GdataDateStrategy
java.lang.Object
org.apache.lucene.gdata.search.analysis.ContentStrategy
org.apache.lucene.gdata.search.analysis.GdataDateStrategy
public class GdataDateStrategy
- extends ContentStrategy
This content strategy retrieves a so called GData Date from a RFC 3339
timestamp format. The format will be parsed and indexed as a timestamp value.
- Author:
- Simon Willnauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GdataDateStrategy
protected GdataDateStrategy(IndexSchemaField fieldConfiguration)
processIndexable
public void processIndexable(Indexable<? extends Node,? extends ServerBaseEntry> indexable)
throws NotIndexableException
- Specified by:
processIndexable
in class ContentStrategy
- Throws:
NotIndexableException
- See Also:
ContentStrategy.processIndexable(org.apache.lucene.gdata.search.analysis.Indexable)
createLuceneField
public Field[] createLuceneField()
- Description copied from class:
ContentStrategy
- This method creates a lucene field from the retrieved content of the
entity. Values for Field.Index, Field.Store, the field name and the boost
factor are configured in the IndexSchemaField passed by the
constructor e.g the factory method. This method might be overwritten by
subclasses.
- Overrides:
createLuceneField
in class ContentStrategy
- Returns:
- the Lucene
Field
- See Also:
ContentStrategy.createLuceneField()
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.