Mercurial > hg > fulltextIndexer
view 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 source
/* */ 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 */