Fix sorting of categories
This commit is contained in:
parent
050aadf201
commit
e38b2424df
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ public class SearchCoreFactory {
|
||||||
SearchResult res = new SearchResult(phrase);
|
SearchResult res = new SearchResult(phrase);
|
||||||
res.localeName = pt.getTranslation();
|
res.localeName = pt.getTranslation();
|
||||||
res.object = pt;
|
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.priorityDistance = 0;
|
||||||
res.objectType = ObjectType.POI_TYPE;
|
res.objectType = ObjectType.POI_TYPE;
|
||||||
resultMatcher.publish(res);
|
resultMatcher.publish(res);
|
||||||
|
|
Loading…
Reference in a new issue