diff src/de/mpiwg/dwinter/lucencetools/documents/MorphDocument.java @ 0:dc7622afcfea default tip

initial
author dwinter
date Wed, 03 Nov 2010 12:33:16 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/dwinter/lucencetools/documents/MorphDocument.java	Wed Nov 03 12:33:16 2010 +0100
@@ -0,0 +1,28 @@
+/*    */ package de.mpiwg.dwinter.lucencetools.documents;
+/*    */ 
+/*    */ import java.io.FileNotFoundException;
+/*    */ import java.io.UnsupportedEncodingException;
+/*    */ import org.apache.lucene.document.Document;
+/*    */ import org.apache.lucene.document.Field;
+/*    */ import org.apache.lucene.document.Field.Index;
+/*    */ import org.apache.lucene.document.Field.Store;
+/*    */ 
+/*    */ public class MorphDocument
+/*    */ {
+/*    */   public static Document Document(String donatusMorph, String path)
+/*    */     throws FileNotFoundException, UnsupportedEncodingException
+/*    */   {
+/* 58 */     Document doc = new Document();
+/*    */ 
+/* 62 */     doc.add(new Field("cleanedPath", path, Field.Store.YES, Field.Index.NOT_ANALYZED));
+/*    */ 
+/* 67 */     doc.add(new Field("donatusMorph", donatusMorph, Field.Store.YES, Field.Index.ANALYZED));
+/*    */ 
+/* 69 */     return doc;
+/*    */   }
+/*    */ }
+
+/* Location:           /private/tmp/fulltextIndexer.jar
+ * Qualified Name:     de.mpiwg.dwinter.lucencetools.documents.MorphDocument
+ * JD-Core Version:    0.5.4
+ */
\ No newline at end of file