Re: problem with field.setboost(5.0f) on lucene 2.00

2007-02-01 Thread liquideshark
ded the field to the document before you set the boost. Try > Field f = new Field()... > > f.setBoost() > > doc.add(f). > > writer.addDoc(doc).. > > Best > Erick > > On 2/1/07, liquideshark <[EMAIL PROTECTED]> wrote: >> >> >> iam bui

problem with field.setboost(5.0f) on lucene 2.00

2007-02-01 Thread liquideshark
iam building up a search engine using lucene 2.0, and iam having problem using the term boost "setboost" a part of my code is : and my code is : doc.add(new Field("title",httpd.getTitle(),Field.Store.YES,Field.Index.TOKENIZED )); doc.getField("title").setboost(5.0f);// <=== the boost wont update