Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Lucene 1.9.1 Fields()

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


Charles.Sanders at gxs

May 25, 2006, 2:00 PM

Post #1 of 2 (1299 views)
Permalink
Lucene 1.9.1 Fields()

I'm having a little trouble converting my code from Lucene 1.4.2 to
Lucene 1.9.1. The following code is throwing exceptions, but I'm not
sure why.

Field myfield = new Field("docid", "5", Field.Store.YES,
Field.Index.UN_TOKENIZED);

Any help greatly appreciated.

The exception is:
org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/Str
ing;Lorg/apache/lucene/document/Field$Store;Lorg/apache/lucene/document/
Field$Index;)V java.lang.NoSuchMethodError

Thanks,
Charles


erik at ehatchersolutions

May 25, 2006, 2:24 PM

Post #2 of 2 (1206 views)
Permalink
Re: Lucene 1.9.1 Fields() [In reply to]

My hunch is you've got the old Lucene in your classpath at runtime.

Erik


On May 25, 2006, at 5:00 PM, <Charles.Sanders [at] gxs>
<Charles.Sanders [at] gxs> wrote:

> I'm having a little trouble converting my code from Lucene 1.4.2 to
> Lucene 1.9.1. The following code is throwing exceptions, but I'm not
> sure why.
>
> Field myfield = new Field("docid", "5", Field.Store.YES,
> Field.Index.UN_TOKENIZED);
>
> Any help greatly appreciated.
>
> The exception is:
> org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/
> lang/Str
> ing;Lorg/apache/lucene/document/Field$Store;Lorg/apache/lucene/
> document/
> Field$Index;)V java.lang.NoSuchMethodError
>
> Thanks,
> Charles
>
>

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.