comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:dc7622afcfea
1 /* */ package de.mpiwg.dwinter.lucencetools.documents;
2 /* */
3 /* */ import java.io.FileNotFoundException;
4 /* */ import java.io.UnsupportedEncodingException;
5 /* */ import org.apache.lucene.document.Document;
6 /* */ import org.apache.lucene.document.Field;
7 /* */ import org.apache.lucene.document.Field.Index;
8 /* */ import org.apache.lucene.document.Field.Store;
9 /* */
10 /* */ public class MorphDocument
11 /* */ {
12 /* */ public static Document Document(String donatusMorph, String path)
13 /* */ throws FileNotFoundException, UnsupportedEncodingException
14 /* */ {
15 /* 58 */ Document doc = new Document();
16 /* */
17 /* 62 */ doc.add(new Field("cleanedPath", path, Field.Store.YES, Field.Index.NOT_ANALYZED));
18 /* */
19 /* 67 */ doc.add(new Field("donatusMorph", donatusMorph, Field.Store.YES, Field.Index.ANALYZED));
20 /* */
21 /* 69 */ return doc;
22 /* */ }
23 /* */ }
24
25 /* Location: /private/tmp/fulltextIndexer.jar
26 * Qualified Name: de.mpiwg.dwinter.lucencetools.documents.MorphDocument
27 * JD-Core Version: 0.5.4
28 */