Fix no poi found

This commit is contained in:
crimean 2018-10-02 23:22:24 +03:00
parent 6740fec58b
commit d608fe291d

View file

@ -950,7 +950,7 @@ public class SearchCoreFactory {
@Override
public int getSearchPriority(SearchPhrase p) {
if ((p.isLastWord(ObjectType.POI_TYPE) && p.getLastTokenLocation() != null)
|| (p.isNoSelectedType() && p.isUnknownSearchWordComplete() && searchAmenityTypesAPI.hasFoundPoiTypes())) {
|| (p.isNoSelectedType() && p.isUnknownSearchWordComplete())) {
return SEARCH_AMENITY_BY_TYPE_PRIORITY;
}
return -1;