Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pelias/query
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: plan4better/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 5 files changed
  • 3 contributors

Commits on Mar 15, 2026

  1. feat: fuzzy street matching, decompounding, postcode boost for German…

    … addresses
    
    - Replace bare match_phrase street clauses with fuzzyStreetClause() in all 3 layouts
      (AddressesUsingIdsQuery, FallbackQuery, StructuredFallbackQuery)
    - fuzzyStreetClause uses multiple strategies: exact phrase, peliasStreet analyzer,
      decompounded variant, concatenated variant, prefix-stripped variant, fuzzy match
    - Add createPostcodeAndStreetShould fallback branch in AddressesUsingIdsQuery
      (low-boost PLZ+street without house number for interpolation support)
    - Add postcode boost in address should clause
    - Add boost_postcode view and export it from index.js
    EPajares committed Mar 15, 2026
    Configuration menu
    Copy the full SHA
    3111d04 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from EPajares/master

    feat: fuzzy street matching, decompounding, postcode boost for German…
    EPajares authored Mar 15, 2026
    Configuration menu
    Copy the full SHA
    7166967 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2026

  1. fix: increase street fuzziness to 2 for German -en- Fugenelement

    Markgrafstr. (query) expands to Markgrafstraße but is indexed as
    Markgrafenstraße — a 2-edit difference (insert 'e' and 'n').
    Fuzziness 1 missed these matches; fuzziness 2 with prefix_length 5
    fixes them without overly broadening unrelated results.
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    EPajares and claude committed May 3, 2026
    Configuration menu
    Copy the full SHA
    bdfff94 View commit details
    Browse the repository at this point in the history
  2. fix: dual-clause fuzzy street matching for German Fugenelement

    Adds fuzziness:2 prefix_length:8 alongside existing fuzziness:1 to
    bridge the German -en- linking element dropped in abbreviations:
    "Markgrafstr." → "markgrafstr" is 2 edits from "markgrafenstr".
    prefix_length:8 ensures only long-prefix matches (blocks false positives
    like "angerstr" vs "angelest" which diverge at position 6).
    fuzziness:1 is retained for ö↔oe transliteration (1-edit, no prefix needed).
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    EPajares and claude committed May 3, 2026
    Configuration menu
    Copy the full SHA
    4c25e15 View commit details
    Browse the repository at this point in the history
  3. Remove createPostcodeAndStreetShould — caused 50 benchmark regressions

    PLZ+street-without-housenumber clause surfaced wrong-number PLZ-matching
    addresses into top-3, which PLZ-first pick_best then selected over
    correct-number interpolated/plz_mismatch results.
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    EPajares and claude committed May 3, 2026
    Configuration menu
    Copy the full SHA
    ea87602 View commit details
    Browse the repository at this point in the history
  4. Restore createPostcodeAndStreetShould with corrected purpose comment

    The clause surfaces PLZ-matching neighbouring addresses so the interpolation
    service can estimate position when the exact housenumber is absent from the
    index (e.g. Lorcher Str. 7 in 73547 Lorch). Without it, interpolation
    finds no candidates and falls back to a wrong-city result (194km off).
    
    The earlier 50 pick_best regressions were fixed in the benchmark by making
    pick_best require PLZ+housenumber match before preferring a PLZ-matching
    result — wrong-number PLZ matches no longer override the correct ES-ranked
    features[0].
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    EPajares and claude committed May 3, 2026
    Configuration menu
    Copy the full SHA
    a33177d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32c2315 View commit details
    Browse the repository at this point in the history
Loading