Fix #7021
This commit is contained in:
parent
d01ed8c6ef
commit
ff5900b8e5
2 changed files with 6 additions and 7 deletions
|
@ -218,7 +218,8 @@ public class SearchUICore {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean sameSearchResult(SearchResult r1, SearchResult r2) {
|
public boolean sameSearchResult(SearchResult r1, SearchResult r2) {
|
||||||
if (r1.location != null && r2.location != null) {
|
if (r1.location != null && r2.location != null &&
|
||||||
|
!ObjectType.isTopVisible(r1.objectType) && !ObjectType.isTopVisible(r2.objectType)) {
|
||||||
if (r1.objectType == r2.objectType) {
|
if (r1.objectType == r2.objectType) {
|
||||||
if (r1.objectType == ObjectType.STREET) {
|
if (r1.objectType == ObjectType.STREET) {
|
||||||
Street st1 = (Street) r1.object;
|
Street st1 = (Street) r1.object;
|
||||||
|
|
|
@ -516,16 +516,14 @@ public class SearchCoreFactory {
|
||||||
if (!phrase.isUnknownSearchWordPresent()) {
|
if (!phrase.isUnknownSearchWordPresent()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (phrase.isNoSelectedType() && phrase.isUnknownSearchWordPresent()
|
boolean hasUnselectedType = phrase.isNoSelectedType() && phrase.isUnknownSearchWordPresent()
|
||||||
&& phrase.isUnknownSearchWordComplete() && phrase.hasUnknownSearchWordPoiTypes()) {
|
&& phrase.isUnknownSearchWordComplete() && phrase.hasUnknownSearchWordPoiTypes();
|
||||||
return false;
|
|
||||||
}
|
|
||||||
final BinaryMapIndexReader[] currentFile = new BinaryMapIndexReader[1];
|
final BinaryMapIndexReader[] currentFile = new BinaryMapIndexReader[1];
|
||||||
Iterator<BinaryMapIndexReader> offlineIterator = phrase.getRadiusOfflineIndexes(BBOX_RADIUS,
|
Iterator<BinaryMapIndexReader> offlineIterator = phrase.getRadiusOfflineIndexes(BBOX_RADIUS,
|
||||||
SearchPhraseDataType.POI);
|
SearchPhraseDataType.POI);
|
||||||
String searchWord = phrase.getUnknownWordToSearch();
|
|
||||||
final NameStringMatcher nm = phrase.getNameStringMatcher(searchWord, phrase.isUnknownSearchWordComplete());
|
|
||||||
String unknownSearchPhrase = phrase.getUnknownSearchPhrase().trim();
|
String unknownSearchPhrase = phrase.getUnknownSearchPhrase().trim();
|
||||||
|
String searchWord = hasUnselectedType ? unknownSearchPhrase : phrase.getUnknownWordToSearch();
|
||||||
|
final NameStringMatcher nm = phrase.getNameStringMatcher(searchWord, phrase.isUnknownSearchWordComplete());
|
||||||
final NameStringMatcher phraseMatcher;
|
final NameStringMatcher phraseMatcher;
|
||||||
if (!Algorithms.isEmpty(unknownSearchPhrase)) {
|
if (!Algorithms.isEmpty(unknownSearchPhrase)) {
|
||||||
phraseMatcher = new NameStringMatcher(unknownSearchPhrase, StringMatcherMode.CHECK_EQUALS);
|
phraseMatcher = new NameStringMatcher(unknownSearchPhrase, StringMatcherMode.CHECK_EQUALS);
|
||||||
|
|
Loading…
Reference in a new issue