Re: Terms given a filter?

2005-09-16 Thread mark harwood
Erik, It may be worth looking at the code here: http://issues.apache.org/jira/browse/LUCENE-328 The Bitsets in your example are likely to be very sparse (I imagine you know only too well how long it takes to write a book and therefore how many books there are likely to be per author! :))With such

Re: Terms given a filter?

2005-09-15 Thread Erik Hatcher
On Sep 15, 2005, at 5:00 AM, JMA wrote: I know I can get all the fields in an index: reader.getFieldNames() and also all the terms: reader.terms() However, I need to be able to get all the terms and fields given a search filter. For example, say I have an index that has crawled 5000 pdf fi

Re: Terms given a filter?

2005-09-15 Thread mark harwood
This sounds like another "group by" totalling question. See the generic "group by" totalling code I posted here: http://marc.theaimsgroup.com/?l=lucene-dev&m=111044178212335&w=2 In your example there is no quality threshold (just a filter bitset of "books in 2002") so you can replace the "scores"

Terms given a filter?

2005-09-15 Thread JMA
Greetings - I know I can get all the fields in an index: reader.getFieldNames() and also all the terms: reader.terms() However, I need to be able to get all the terms and fields given a search filter. For example, say I have an index that has crawled 5000 pdf files (books) and I have the follow