de.nava.informa.search
Class ItemDocument
java.lang.Object
de.nava.informa.search.ItemDocument
- All Implemented Interfaces:
- ItemFieldConstants
public class ItemDocument
- extends Object
- implements ItemFieldConstants
A utility class for making a Lucene Document from a news Item
object.
- Author:
- Niko Schmuck (niko@nava.de)
Method Summary |
static org.apache.lucene.document.Document |
makeDocument(ItemIF item)
Makes a document for a ItemIF object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
makeDocument
public static org.apache.lucene.document.Document makeDocument(ItemIF item)
- Makes a document for a ItemIF object.
The document has five fields:
title
--containing the title of the item,
as a stored, tokenized field;
description
--containing the description of the
item, as a stored, tokenized field;
titledesc
--containing the combination of the
title and the description of the item, as a stored, tokenized
field;
found
--containing the last modified date of
the item as a keyword field as encoded by DateField;
id
--containing the identifier of
the item as a unindexed field (for later retrieval).
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.