Re: Creating tag clouds with lucene

2009-11-06 Thread Mathias Bank
gt; Lucene Database Search in 3 minutes: > http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes > DBSight customer, a shopping comparison site, (anonymous per request) got > 2.6 Million Euro funding! > > > Mathias Bank wrote: >> >> Hi, >>

Re: Counting search results

2009-09-17 Thread Mathias Bank
> > BitSet set = filter.bits(reader); > >  int numDocs > > TermDocs termDocs = reader.termDocs(new Term("myField", "myTerm")); > > while (termDocs.next()) { > >  if(set.get(termDocs.doc())) > >    numDocs++; > > } > > > > would th

Re: Counting search results

2009-09-15 Thread Mathias Bank
; simon > > On Tue, Sep 15, 2009 at 2:19 PM, Mathias Bank wrote: >> Hello, >> >> I'm trying to find the number of documents for a specific term to >> create text statistics. I'm not interested in ordering the results or >> even recieving the first result. I ju

Counting search results

2009-09-15 Thread Mathias Bank
Hello, I'm trying to find the number of documents for a specific term to create text statistics. I'm not interested in ordering the results or even recieving the first result. I just need the number of results. Currently, I'm trying to do this by using the lucene searcher class: IndexSearcher se