apache / www-site

The ASF Website
Apache License 2.0
42 stars 99 forks source link

Update pagefind to latest version (1.0.3) #313

Closed sebbASF closed 9 months ago

sebbASF commented 9 months ago

Seems to work fine - see https://www-pagefind1x.staged.apache.org/

sebbASF commented 9 months ago

Just discovered that the search seems to misbehave. Try searching for 'aa' - 4 results, same as at present. However 'aaa' now gives 159 results instead of 0. This does not make sense

sebbASF commented 9 months ago

Turns out that this is intentional: if a search does not return any results, it does a prefix search. Not sure this is an improvement; I would rather not see any results if there are no exact matches.

Or at least it would be useful to be able to choose the behaviour. (Will try to find out if this can be configured)

sebbASF commented 9 months ago

A search string can be enclosed in double-quotes to match the full search string (and no more), so the new behaviour is less of an issue.