I created a index of cities with the following properties
- Name
- Population
- Country
With the following code I can run searches and got results
var parser = new QueryParser(Lucene.Net.Util.Version.LUCENE_30, "Name", analyzer);
Query query = parser.Parse(searchTerm);
TopScoreDocCollector result = TopScoreDocCollector.Create(resultCount, true);
searcher.Search(query, result);
For example, when I run Berlen~
as a fuzzy query I got some results. But the city Berlin -with highest Population- is some where in the middle. How can I influence the query to have cities with higher population value to get a higher score?