Ah, ok. So what I am doing is correct, just the way to see the boost factor was uncorrect.
sorry if I do newbie questions... On 8/7/05, Chris Hostetter <[EMAIL PROTECTED]> wrote: > : Field f = Field.Text("boostfield", "text"); > : f.setBoost(3.0f); > : document.add(f); > > : if then i try to get the boost factor of the boostfield > : > : > System.out.println(IndexReader.open(indexDir).document(0).getField("boostfield").getBoost()); > : > : for the only one document indexed I get 1.0 instead of 3.0! > : > : where is the error? > > Did you read the documentation for getBoost? > > http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Document.html#getBoost() > > if you search past messages for getBoost and setBoost you should be able > to find some explanations of how Document based boosts (as opposed to > Query boosts) are used at indexing time. > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Riccardo Daviddi University of Siena - Information Engeneering [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]