boost that less than the main
> field.
>
> On Dec 27, 2007, at 4:19 PM, Frank Schima wrote:
>
>> So I have my fancy new stemmed synonym based Lucene index. Let's say
>> I have
>> the following synonym defined:
>>
>> radiation -> radiotherapy (and t
Happy festivus everyone,
So I have my fancy new stemmed synonym based Lucene index. Let's say I have
the following synonym defined:
radiation -> radiotherapy (and the reverse)
The search results rank all results exactly the same. Is there a way to
Boost the actual search term a little higher t
Hi Erick,
Erick Erickson wrote:
>
> I don't think this has anything to do with Lucene, the problem
> seems to be that your compiler can't find the Java Stack
> class.
>
> You need to set your classpath to include wherever
> java.utils is on your disk.
>
I agree it's a Java issue. I'm just u
Hello all,
I'm trying to implement a synonym engine in Lucene 2.2 based on the code in
the Lucene In Action book. However, I'm getting compile errors:
My Synonym filter looks like this:
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.TokenFilter;
import org.ap
Erick Erickson wrote:
>
> QueryParser.setDefaultOperator(QueryParser.Operator.AND).
>
That works. Thanks!
--
View this message in context:
http://www.nabble.com/Search-with-AND-by-default-tf3909294.html#a11086380
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
I'm searching my index and if a user types multiple words (e.g. "two words")
in the search field, I want both of the search terms to appear in the
resulting hits, but it appears to be doing an OR by default. How can I get
an AND by default instead?
Here's how i create my Search:
QueryParser qp =