Skip to content

4.5.3 - Fuzzy Match bugs fixs and AND/OR in occupant tags#427

Merged
3rdmike merged 23 commits intomainfrom
4.5.3
Mar 9, 2026
Merged

4.5.3 - Fuzzy Match bugs fixs and AND/OR in occupant tags#427
3rdmike merged 23 commits intomainfrom
4.5.3

Conversation

@3rdmike
Copy link
Copy Markdown
Contributor

@3rdmike 3rdmike commented Jan 28, 2026

  1. Allow AND/OR logic in occupant tags search (default is now OR)
  2. FuzzyMatch is now case insensitive
  3. FuzzyMatch now prefer exact locality match over partial matches (Ganges now correctly maps to Ganges in Salt Spring Island)
  4. Add WYN as a road type

@3rdmike
Copy link
Copy Markdown
Contributor Author

3rdmike commented Jan 28, 2026

Merge private road changes too. This will make sure future private roads are labeled as private road in street prep.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps the version from 4.5.2 to 4.5.3 and introduces bug fixes for fuzzy matching along with AND/OR logic support for occupant tags filtering. The changes improve geocoding accuracy by making fuzzy matching case-insensitive and prioritizing exact locality matches over partial matches. Additionally, it adds "Wye" as a valid street type and implements special handling for private road names.

Changes:

  • Enhanced fuzzy matching to be case-insensitive and prioritize exact locality matches over partial matches
  • Added AND/OR logic support for occupant tags search (default is OR)
  • Added "Wye" as a valid street type (railway term for Y-shaped track junction)
  • Implemented private road handling to use secondary street name when primary is "Private Rd"

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
pom.xml Version bump from 4.5.2 to 4.5.3
ols-geocoder-web/pom.xml Version bump to match parent
ols-geocoder-core/pom.xml Version bump to match parent
ols-geocoder-process/pom.xml Version bump to match parent
ols-geocoder-admin/pom.xml Version bump to match parent
ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/api/GeocodeQuery.java Added tagCondition parameter and AND/OR logic for occupant tags filtering
ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/Geocoder.java Enhanced fuzzy matching with case-insensitive comparison and locality match prioritization
ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/GeocoderDataStore.java Added "Wye" as a valid street type
ols-geocoder-process/src/main/java/ca/bc/gov/ols/streetprep/StreetPrep.java Implemented private road detection and handling to prioritize secondary street names
ols-geocoder-process/src/main/java/ca/bc/gov/ols/siteloaderprep/RawStreetName.java Added isPrivateRoad boolean field to track private road names
.gitignore Added local_data directory and backup file pattern (*~)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/api/GeocodeQuery.java Outdated
Comment thread ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/api/GeocodeQuery.java Outdated
Comment thread ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/api/GeocodeQuery.java Outdated
Comment thread ols-geocoder-core/src/main/java/ca/bc/gov/ols/geocoder/api/GeocodeQuery.java Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

@3rdmike I've opened a new pull request, #434, to work on those changes. Once the pull request is ready, I'll request review from you.

3rdmike and others added 4 commits March 9, 2026 11:54
…codeQuery.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 3rdmike <124401782+3rdmike@users.noreply.github.com>
…codeQuery.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Remove debug println statements from GeocodeQuery tag filtering
@3rdmike 3rdmike merged commit 4f89683 into main Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants