lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anushri kumar <anukumar...@yahoo.com>
Subject Indexing dates
Date Mon, 31 Oct 2005 17:36:35 GMT
Hi,
 
I was trying to index dates. I wrote

Document doc = new Document();
doc.add(Field.Keyword("indexdate",new Date() ));

but while running the program it gave me the following error.

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.lucene.docume
nt.Field.Keyword(Ljava/lang/String;Ljava/util/Date;)Lorg/apache/lucene/document/
Field;
at lia.handlingtypes.msdoc.TextMiningWordDocHandler.getDocument(TextMini
ngWordDocHandler.java:40)
at lia.handlingtypes.framework.ExtensionFileHandler.getDocument(Extensio
nFileHandler.java:41)
at lia.handlingtypes.framework.FileIndexer.index(FileIndexer.java:43)
at lia.handlingtypes.framework.FileIndexer.index(FileIndexer.java:36)
at lia.handlingtypes.framework.FileIndexer.index(FileIndexer.java:36)
at lia.handlingtypes.framework.FileIndexer.main(FileIndexer.java:77)

Is there something I'm missing ? 

Thanks a lot ,
Anu 


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message