Merge pull request #4916 from osmandapp/PaulsBranch

Fixed #4906
This commit is contained in:
PaulStets 2018-01-14 11:46:04 +02:00 committed by GitHub
commit b5fbb52ce3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -562,7 +562,7 @@ public class SearchCoreFactory {
if (p.hasObjectType(ObjectType.POI_TYPE)) {
return -1;
}
if (p.getUnknownSearchWordLength() > 3 || p.getRadiusLevel() > 1) {
if (p.getUnknownSearchWordLength() >= 3 || p.getRadiusLevel() > 1) {
return SEARCH_AMENITY_BY_NAME_API_PRIORITY_IF_3_CHAR;
}
return -1;