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

Reply via email to