]> git.openstreetmap.org Git - nominatim.git/commit
remove Token from explicit input for SearchDescription extension
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Jul 2021 12:48:20 +0000 (14:48 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 17 Jul 2021 16:18:31 +0000 (18:18 +0200)
commit3cd85eaaf16f740bb984436184b37a84a94b2553
tree88f21421e5a7e2caafd9e3ebaab055de113ca89c
parentec3f6c9c42dd89e71d4edd3cfb2a911453aba58d
remove Token from explicit input for SearchDescription extension

The token string is only required by the PartialToken type, so
it can simply save the token string internally. No need to pass
it to every type.

Also moves the check for multi-word partials to the token loader
code in the tokenizer. Multi-word partials can only happen with
the legacy tokenizer and when the database was loaded with an
older version of Nominatim. No need to keep the check for
everybody.
lib-php/Geocode.php
lib-php/SearchDescription.php
lib-php/TokenPartial.php
lib-php/tokenizer/legacy_icu_tokenizer.php
lib-php/tokenizer/legacy_tokenizer.php