Re: Tips on building a better BooleanQuery

2006-04-28 Thread Doug Cutting
Daniel Shane wrote: For example, if I have terms A, B and C and I do a simple boolean search : A B C, I would like to have a query that behaves a bit like if I rewrote this query as such : +A +B +C "A B" "B C" "A B C" This would boost results where the exact string "A B C" or any substring lik

Tips on building a better BooleanQuery

2006-04-28 Thread Daniel Shane
Hi! I'm planning on contributing to Lucene by adding a new kind of query. I dont know how to call it yet, but it would be a mix of BooleanQuery and ExactPhraseQuery. I would like to have a Query that is a BooleanQuery, but with a slight touch where it would boost results if it finds the query te