Skip to content

exact phrase search + per-language index - #7

Open
amigai wants to merge 1 commit into
virtuozzo:mainfrom
amigai:main
Open

amigai wants to merge 1 commit into
virtuozzo:mainfrom
amigai:main

Conversation

@amigai

@amigai amigai commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Quoted queries are matched literally instead of being split into tokens that each matched on their own, which returned any page containing any word. Fuzzy search is now a fallback for queries with no quotes and no literal match.

  • rank by the most important field holding the whole query
  • snippets cut around the match, not the SEO description
  • distance 20 -> 100000, minMatchCharLength 30 -> 3
  • search.html publishes the per-language index.json as data-index, so translated pages stop searching the English index
  • index.json unescapes .Plain, so is indexed as typed

Quoted queries are matched literally instead of being split into
tokens that each matched on their own, which returned any page
containing any word. Fuzzy search is now a fallback for queries
with no quotes and no literal match.

- rank by the most important field holding the whole query
- snippets cut around the match, not the SEO description
- distance 20 -> 100000, minMatchCharLength 30 -> 3
- search.html publishes the per-language index.json as data-index,
  so translated pages stop searching the English index
- index.json unescapes .Plain, so <value> is indexed as typed

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BpPEs3P68K4mHdsi3TNcZ1
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.

1 participant