Fix sorting of categories

This commit is contained in:
Alexey Kulish 2016-11-10 11:17:05 +03:00
parent 050aadf201
commit e38b2424df

View file

@ -568,7 +568,7 @@ public class SearchCoreFactory {
SearchResult res = new SearchResult(phrase);
res.localeName = pt.getTranslation();
res.object = pt;
res.priority = SEARCH_AMENITY_TYPE_PRIORITY + (pt instanceof PoiCategory ? 0.0 : 0.1);
res.priority = SEARCH_AMENITY_TYPE_PRIORITY;
res.priorityDistance = 0;
res.objectType = ObjectType.POI_TYPE;
resultMatcher.publish(res);