: 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]