Re: Reverse sorting by index order

2005-11-03 Thread Andy Lee
On Nov 3, 2005, at 10:22 AM, Oren Shir wrote: There is no constructor for Sort(SortField, boolean) in Lucene API. Which version are you using? I think 1.9rc1. I have a pretty recent svn checkout -- maybe this constructor is new. --Andy -

Re: Reverse sorting by index order

2005-11-03 Thread Andy Lee
On Nov 3, 2005, at 9:37 AM, Oren Shir wrote: If I understand correctly, when sorting by Sort.INDEXORDER the oldest documents that were added to the index will be returned first. I want the reverse, because I'm more interested in newer documents. Looking at the source, I see that Sort.INDEXOR

Re: trying to boost a phrase higher than its individual words

2005-10-28 Thread Andy Lee
On Oct 28, 2005, at 8:17 PM, Chris Hostetter wrote: One thing to keep in mind is that if you have things you are adding to hte query to restrict the results, but you don't want them to contribute to the score, then try using a Filter instead. If you can't find an easy way to replace a query

Re: trying to boost a phrase higher than its individual words

2005-10-28 Thread Andy Lee
On Oct 28, 2005, at 10:38 AM, Erik Hatcher wrote: So in this case a matching document must have both terms? Or could it just have one or the other? If it must have both, you could try a PhraseQuery with a slop of Integer.MAX_VALUE. PhraseQuery scores closer matches higher. Good to know,

trying to boost a phrase higher than its individual words

2005-10-27 Thread Andy Lee
I have a situation where I want to search for individual words in a phrase as well as the phrase itself. For example, if the user enters ["classical music"] (with quotes) I want to find documents that contain "classical music" (the phrase) *and* the individual words "classical" and "music"

Re: Do you believe in Clause sanity?

2005-10-13 Thread Andy Lee
Oops, I'm confusing libraries. I meant I want to remove a Nutch Clause from a Nutch Query. --Andy On Oct 13, 2005, at 4:45 PM, Andy Lee wrote: The API for BooleanQuery only seems to allow adding clauses. The nearest way I can see to *remove* a clause is by laboriously construct

Do you believe in Clause sanity?

2005-10-13 Thread Andy Lee
The API for BooleanQuery only seems to allow adding clauses. The nearest way I can see to *remove* a clause is by laboriously constructing a new BooleanQuery (assuming you aren't absolutely tied to the original instance) and adding all the clauses from the original query except the one you