diff src/de/mpiwg/dwinter/lucencetools/documents/.svn/text-base/MorphDocument.java.svn-base @ 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/.svn/text-base/MorphDocument.java.svn-base	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