Mailing List Archive

Difference in search result for Luke and my code.
Hi Experts,

I am in a project of migration of Lucene from 2.4.1 to 8.11.2 for our product.

I am seeing some difference in search result of my written code Vs. Luke Tool result on same Index files.

Can anybody please explain, what can be the reason behind it?
I explaining more in details below.

I am trying to give a below same query string in both side[Luke & in our product]:
+(+(+((boe.search.name:"sampl")^10000.0 (boe.search.docname:"sampl")^1000.0 (boe.search.description:"sampl")^10000.0 (boe.search.docdescription:"sampl")^1000.0 (boe.search.keyword:"sampl")^10000.0 (boe.search.dockeyword:"sampl")^1000.0 (boe.search.folderpath:"sampl")^10000.0 (boe.search.content:"sampl")^10.0 (boe.search.pvalue:"sampl")^10.0 (boe.search.author:"sampl")^1000.0 (boe.search.doccreator:"sampl")^1000.0 (boe.search.userfullname:"sampl")^1.0 (boe.search.doccompany:"sampl")^1000.0 (boe.search.doccategory:"sampl")^1000.0 (boe.search.docsubject:"sampl")^1000.0 (boe.search.doccomments:"sampl")^1000.0 (boe.search.contentmetadata:"sampl")^100.0) -(boe.search.kind:"AAD.AnalysisApplication_Bookmark" (boe.search.kind:BIWidgets) (boe.search.kind:Discussions) boe.search.kind:"DSL.MetaDataFile" boe.search.kind:"DSL.Universe" (boe.search.kind:Event) (boe.search.kind:LCMJob) (boe.search.kind:ObjectPackage) (boe.search.kind:Profile) (boe.search.kind:Program) (boe.search.kind:Publication) (boe.search.kind:QaaWS) (boe.search.kind:Universe) boe.search.kind:"VISI.Story" boe.search.kind:" VISI.Dataset" (boe.search.kind:DataDiscoveryAlbum) (boe.search.kind:DataDiscovery))) ((boe.search.lang:en*)^50000.0)) -boe.search.indexstat.status:error

My side code is as below. Which is giving me result set of 5760 Hits
TopDocs hits = searcher.search((Query) query, maxHits); //maxHits is 10000. query carries the above string.
long totalCount = hits.totalHits.value; // totalCount is coming as 5760.


But, Luke tool is giving same query with 1968 Hits, as below.
[cid:image001.png@01DA43E8.DF8ACC20]

Please let me know, if needed any more information.


Regards
Rajib