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 [mailto:toratle...@gmail.com] > Sent: Saturday, December 19, 2009 6:49 PM > To: java-user@lucene.apache.org > Subject: Wildcard searches and document boost > > > 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 always > 1.0. > > Luke says my query has been rewritten to "ConstantScore(myField:wash*), so > that sort of explains what's going on. But why? And short of sorting the > result, what is the solution to my problem? > > Best regards, > Tor Atle > -- > View this message in context: http://old.nabble.com/Wildcard-searches-and- > document-boost-tp26857120p26857120.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org