I'm trying to make sure the document boost i'm sending in is actually
getting used.  I don't see it showing up anywhere.  To illustrate, I
augmented the BasicFunctionalityTest.testDocBoost() with:

public void testDocBoost() throws Exception {
  ...

   LocalSolrQueryRequest lqr = lrf.makeRequest("q", "hello");
   Term term = new Term( "id", "2" );
   int docID = lqr.getSearcher().getFirstMatch( term );
   assertTrue( "term not found", docID >= 0 );
   Document doc = lqr.getSearcher().doc( docID );
   assertNotNull( "document not found", doc );
   assertEquals( "incorrect boost.", 2.0f, doc.getBoost() );
}

it retrieves the document, but gets the wrong boost:  "expected:<2.0>
but was:<1.0>"

Can you get the boost of an indexed document?  Am I missing something
basic?  Is the stored document boost lost once it is indexed?

thanks
ryan

Reply via email to