gettotalhits vs totalhits

2009-10-17 Thread R.A.Ittoo
hi I am wondering what is the difference between collector.getTotalHits();//where collector is a TopScoreDocCollector (which returns the correct value for my example = 2 docs) and collector.topDocs().totalHits (which returns 0, and is wrong) the collector was used in a search: searcher.search

Re: which version

2009-10-16 Thread R.A.Ittoo
caused by this. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de -Original Message----- From: R.A.Ittoo [mailto:r.a.it...@rug.nl] Sent: Friday, October 16, 2009 11:38 AM To: java-user@lucene.apache.org Subject: which version hi i am us

which version

2009-10-16 Thread R.A.Ittoo
hi i am using lucene version 2.9 When calling the StandardAnalyzer constructor with the VErsion.LUCENE_VERSION as parameter, I get the error "symbol not found constructor StandardAnalyzer(org.apache.lucene.util.Version)" this is strange, as it is supposed to be correct according to the API doc an