Fixes according to review
This commit is contained in:
parent
da07e7cf2d
commit
8f2ab2d077
2 changed files with 611 additions and 614 deletions
|
@ -46,7 +46,6 @@ public class SearchPhrase {
|
|||
private Collator clt;
|
||||
|
||||
private static Set<String> conjunctions = new TreeSet<>();
|
||||
|
||||
static {
|
||||
// the
|
||||
conjunctions.add("the");
|
||||
|
@ -275,7 +274,6 @@ public class SearchPhrase {
|
|||
final Iterator<BinaryMapIndexReader> lit = list.iterator();
|
||||
return new Iterator<BinaryMapIndexReader>() {
|
||||
BinaryMapIndexReader next = null;
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
while (lit.hasNext()) {
|
||||
|
@ -589,7 +587,7 @@ public class SearchPhrase {
|
|||
Iterator<BinaryMapIndexReader> it = indexes.iterator();
|
||||
while (it.hasNext()) {
|
||||
BinaryMapIndexReader r = it.next();
|
||||
if (r.getFile().getName().matches(".*([0-9]+_*){3}\\.obf")) {
|
||||
if (r.getFile().getName().matches("[a-zA-Z_-]+([0-9]+_*){3}[.a-z]+")) {
|
||||
String currRegionName = r.getRegionName();
|
||||
if (result.containsKey(currRegionName)) {
|
||||
result.get(currRegionName).add(r);
|
||||
|
@ -657,7 +655,6 @@ public class SearchPhrase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public int getRadiusSearch(int meters) {
|
||||
return (1 << (getRadiusLevel() - 1)) * meters;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue