Skip to content

Search index improvements#5488

Merged
ssddanbrown merged 5 commits intodevelopmentfrom
search_index_updates
Feb 14, 2025
Merged

Search index improvements#5488
ssddanbrown merged 5 commits intodevelopmentfrom
search_index_updates

Conversation

@ssddanbrown
Copy link
Copy Markdown
Member

  • Adds more advanced indexing to retain terms joined with certain punctuation (.-).
  • Adds «giullemets» as term delimiters.
  • Breaks out search tests into multiple classes within their own dir.

From testing, custom indexing tokenization slows indexing speed by about 5-10% on my dev instance (37k pages).
Seems within reason, will be minor actual speed impact in normal use.

Re-indexing may be needed to receive benefits.

php artisan bookstack:regenerate-search

Docs update

  • Just a note on the feature mention in blogpost to re-index, does not really need to be an update advisory.

inv-hareesh and others added 5 commits February 7, 2025 08:59
This changes indexing so that a.b now indexes as "a", "b" AND "a.b"
instead of just the first two, for periods and hypens, so terms
containing those characters can be searched within.

Adds hypens as a delimiter - #2095
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants