
Jean-Philippe.Robichaud at nuance
Oct 23, 2006, 12:15 PM
Post #4 of 7
(1771 views)
Permalink
|
|
RE: "Catalog" backend for document stored fields?
[In reply to]
|
|
That may be a good idea. Is it possible to do this efficiently, like inside of the collect() call of a hitCollector? Right now, that's how my reporting tool works: Searcher searcher = new MultiSearcher(directories[] ...); HitCollector myHC = new MyHitCollector(searcher, ...); Searcher.search(myQuery,myHC); myHC.reportStatistics(); And myHC.collect(int docid, float rawscore) looks like public void collect(int docid, float rawscore) { Document doc = searcher.doc(docid); String s1 = doc.get("field1"); String s2 = doc.get("field2"); String s3 = doc.get("field3"); ... CumulateStatistics(s1,s2,s3,...); } I know that the indexreader has the termPositions method, but I can't use this approach as I need to do this from within the 'search' call. Do you have an idea how I could use it in my scheme? Jp -----Original Message----- From: Mike Klaas [mailto:mike.klaas [at] gmail] Sent: Friday, October 20, 2006 5:00 PM To: java-user [at] lucene Subject: Re: "Catalog" backend for document stored fields? On 10/20/06, Robichaud, Jean-Philippe <Jean-Philippe.Robichaud [at] nuance> wrote: > 3- Any ideas on how else I could do this? I'm fully open to > discussion! How about not storing the fields at all, but storing term vectors, and reconstructing the data from termpositions + terminfo? -Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|