Term Frequency and IndexSearcher

2009-01-15 Thread Paul Lynch
Hi,   I know it is very easy to get the frequency of a given term using the indexReader but I am looking to perform an index search and would like to get the frequency of the given term in the result set. Is this possible?   Thanks in advance, Paul ---

Advice on Custom Sorting

2006-09-25 Thread Paul Lynch
Hi All, I have an index containing documents which all have a field called SubId which holds the ID of the Subscriber that submitted the data. This field is STORED and UN_TOKENIZED When I am querying the index, the user can cloose a number of different ways to sort the Hits. The problem is that I

Re: Advice on Custom Sorting

2006-09-25 Thread Paul Lynch
. > > I can imagine several variations on this scenario, > but they depend on your > problem space. > > Whether this is the "best" or not, I leave as an > exercise for the reader. > > Best > Erick > > On 9/25/06, Paul Lynch <[EMAIL PROTECTED]&

Re: Advice on Custom Sorting

2006-09-26 Thread Paul Lynch
Erick Erickson <[EMAIL PROTECTED]> wrote: > You were probably right. See below.... > > On 9/25/06, Paul Lynch <[EMAIL PROTECTED]> wrote: > > > > Thanks for the quick response Erick. > > > > "index the documents in your preferred list with a >

Problem with Custom Filter

2007-01-26 Thread Paul Lynch
Hi, I am going mad trying to find out what I am doing wrong with my custom filter implementation (almost an exact copy of SpecialsFilter from LIA). I have put together a quick sample to illustrate my problem, if some kind soul has 2 minutes to take a quick look and tell me where I am being so s

Re: Problem with Custom Filter

2007-01-26 Thread Paul Lynch
r limit of the number of matching docs is, since I don't think there's any way to cause TermDocs.read to return entries n through n+sizeofdocs. Try something like termDocs.seek(new Term("advertiserId", advertiserId); while (termDocs.next()) { bits.set(termDocs.doc()); }

FunctionQuery example request

2006-03-15 Thread Paul Lynch
Hi, I have implemented the DistanceComparatorSource example from Lucene In Action (my Bible) and it works great. We are now in the situation where we have nearly a million documents in our index and the performance of this implementation has degraded. I have downloaded and am trying to understand

FunctionQuery example request

2006-03-16 Thread Paul Lynch
Hi, have implemented the DistanceComparatorSource example from Lucene In Action (my Bible) and it works great. We are now in the situation where we have nearly a million documents in our index and the performance of this implementation has degraded. I have downloaded and am trying to understand t

Re: FunctionQuery example request

2006-03-17 Thread Paul Lynch
Thanks for all the replies to my previous posting, I was not subscribed to the list properly and did not see all of the replies. Please disregard this post. Thanks again, Paul --- Paul Lynch <[EMAIL PROTECTED]> wrote: > Hi, > > have implemented the DistanceComparatorSource &