One more question
""d.add(new Field("txt", rs.getString("subject"), Field.Store.NO,
Field.Index.ANALYZED));"""
the field txt is a blob ...how can i index a blob? with rs.geBlob(txt) ?
thank
luciusvorenus wrote:
>
>
> ""
>
> Exception in thread "main" java.lang.NullPointerException
>
gt;
>
> -Ursprüngliche Nachricht-
> Von: luciusvorenus [mailto:lucius.vore...@hotmail.de]
> Gesendet: Donnerstag, 28. Januar 2010 23:02
> An: java-user@lucene.apache.org
> Betreff: Re: AW: index a database
>
>
> yes many thanks ..
> But /.../m
", value, Field.Store.YES,
Field.Index.ANALYZED));
w.addDocument(doc);
}
-Ursprüngliche Nachricht-
Von: luciusvorenus [mailto:lucius.vore...@hotmail.de]
Gesendet: Donnerstag, 28. Januar 2010 23:02
An: java-user@lucene.apache.org
Betreff: Re: AW: index a database
yes ma
yes many thanks ..
But /.../my index folder is empty. Have I done something wrong in
"private static void indexDocs"? It is not indexed
Marc Schwarz wrote:
>
> StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);
>
> any difference with that ?
>
> -Ursprün
""
Exception in thread "main" java.lang.NullPointerException
at
org.apache.lucene.analysis.StopFilter.getEnablePositionIncrementsVersionDefault(StopFilter.java:162)
at
org.apache.lucene.analysis.standard.StandardAnalyzer.(StandardAnalyzer.java:73)
at
org.apache.lucene.ana
StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);
any difference with that ?
-Ursprüngliche Nachricht-
Von: luciusvorenus [mailto:lucius.vore...@hotmail.de]
Gesendet: Donnerstag, 28. Januar 2010 22:46
An: java-user@lucene.apache.org
Betreff: Re: index a database
I had that problem yesterday... this works in my app:
Directory directory = new SimpleFSDirectory(new File("c:\\lucene\\index"));
IndexWriter w = new IndexWriter(directory, analyzer,true,
new IndexWriter.MaxFieldLength(25000));
-Ursprüngliche Nachricht-
Von: Erick Erickson [mailto:eric