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

Wildcard searches and document boost

2009-12-19 Thread TorAtle
I have indexed a number of geotagged locations and want the results sorted by relevance. 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 a