The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dpawson (54) [Avatar] Offline
#1
"There are only three attributes and methods on a TopDocs instance; they’re listed in table 3.4."

The javadocs shows two fields and two methods?
scoreDocs[], totalHits and getMaxScore(), setMaxScore()

Only 3 applicable to searching?
mike.mccandless (221) [Avatar] Offline
#2
Re: PDF p106. Ref to TopDocs api
Yeah... setMaxScore you are not supposed to call yourself smilie Lucene calls that one.
dpawson (54) [Avatar] Offline
#3
Re: PDF p106. Ref to TopDocs api
So either the Javadoc is wrong, or the text is? Any reason to count them in the book? Just talk about the ones you use?
mike.mccandless (221) [Avatar] Offline
#4
Re: PDF p106. Ref to TopDocs api
I'll fix the text to not count the methods, if I can... book is going to production now.