RE: Wildcard searches and document boost

2009-12-20 Thread Uwe Schindler
gt; Subject: Re: Wildcard searches and document boost > > > > You need to change multiTermRewriteMethod of QueryParser. > > > qp.setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE) > ; > > Thanks. So the normal way of doing this is se

Re: Wildcard searches and document boost

2009-12-20 Thread TorAtle
> You need to change multiTermRewriteMethod of QueryParser. > qp.setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE); Thanks. So the normal way of doing this is setting the rewrite method to scoring, and if BooleanQuery.TooManyClauses is catched then switch back to constant sc

Re: Wildcard searches and document boost

2009-12-19 Thread AHMET ARSLAN
> For instance, when searching for "wash*" I want > "Washington" (the city) to > appear before "Washington Park", so I have boosted the > "Washington" > document. Unfortunately, when using WildcardQuery, the > score is always 1.0. > > Luke says my query has been rewritten to > "ConstantScore(myFie

RE: Wildcard searches and document boost

2009-12-19 Thread Uwe Schindler
WildcardQuery is a subclass of MultiTermQuery, read the javadocs about MTQ, than you might understand whats going on and what you can do. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: TorAtle [mail