Re: Faceting, Sort and DocIDSet

2009-04-22 Thread John Wang
Karsten: Yes, you kinda need that for faceting to work. Take a look at FacetDataCache class. -John On Wed, Apr 22, 2009 at 3:06 AM, Karsten F. wrote: > > Hi Dave, > > facets: > in you case a solution with one > int[IndexReader.maxDoc()] > fits. For each document number you can store an inte

RE: Faceting, Sort and DocIDSet

2009-04-22 Thread Karsten F.
Hi Dave, facets: in you case a solution with one int[IndexReader.maxDoc()] fits. For each document number you can store an integer which represents the facet value. This is what org.apache.solr.request.UnInvertedField will store in your case. (*John* : is there something similar in com.browseeng

RE: Faceting, Sort and DocIDSet

2009-04-21 Thread David Seltzer
From: Karsten F. [mailto:karsten-luc...@fiz-technik.de] Sent: Monday, April 20, 2009 4:00 PM To: java-user@lucene.apache.org Subject: RE: Faceting, Sort and DocIDSet Hi David, correct: you should avoid reading the content of a document inside a hitcollector. Normaly that means to cache all you need

Re: Faceting, Sort and DocIDSet

2009-04-20 Thread John Wang
Hi David: We built bobo-browse specifically for these types of usecases: http://code.google.com/p/bobo-browse Let me know if you need any help getting it going. -John On Mon, Apr 20, 2009 at 12:59 PM, Karsten F. wrote: > > Hi David, > > correct: you should avoid reading the content o

RE: Faceting, Sort and DocIDSet

2009-04-20 Thread Karsten F.
Hi David, correct: you should avoid reading the content of a document inside a hitcollector. Normaly that means to cache all you need in main memory. Very simple and fast is a facet with only 255 possible values and exactly one value per document. In this case you need only an byte[IndexReader.ma

RE: Faceting, Sort and DocIDSet

2009-04-20 Thread David Seltzer
w how this behaves? Thanks, -Dave -Original Message- From: Robert Muir [mailto:rcm...@gmail.com] Sent: Monday, April 20, 2009 10:26 AM To: java-user@lucene.apache.org Subject: Re: Faceting, Sort and DocIDSet David, One suggestion I have for your large index. Is it possible to index

Re: Faceting, Sort and DocIDSet

2009-04-20 Thread Robert Muir
gt; -Original Message- > From: Karsten F. [mailto:karsten-luc...@fiz-technik.de] > Sent: Saturday, April 18, 2009 10:58 AM > To: java-user@lucene.apache.org > Subject: Re: Faceting, Sort and DocIDSet > > > Hi Dave, > > searching and sorting in lucene are two separ

RE: Faceting, Sort and DocIDSet

2009-04-20 Thread David Seltzer
ks! -Dave -Original Message- From: Karsten F. [mailto:karsten-luc...@fiz-technik.de] Sent: Saturday, April 18, 2009 10:58 AM To: java-user@lucene.apache.org Subject: Re: Faceting, Sort and DocIDSet Hi Dave, searching and sorting in lucene are two separate functions (if you not want to sort by

Re: Faceting, Sort and DocIDSet

2009-04-18 Thread Karsten F.
Hi Dave, searching and sorting in lucene are two separate functions (if you not want to sort by relevance). You will not loss performance if you first search with BitSet as HitCollector and then sort the result by DateField. But more easy is to extend TopFieldDocCollector/TopFieldCollector to a C