Skip to content

fix: search relevance by using one big query (properly sets total_doc… - #59

Merged
tiller1010 merged 1 commit into
developfrom
feature/fix-index-queries
Jun 12, 2026
Merged

fix: search relevance by using one big query (properly sets total_doc…#59
tiller1010 merged 1 commit into
developfrom
feature/fix-index-queries

Conversation

@tiller1010

@tiller1010 tiller1010 commented Jun 12, 2026

Copy link
Copy Markdown
Member

https://werkbotstudios.teamwork.com/app/tasks/39608949
https://werkbotstudios.teamwork.com/app/tasks/39602444

Summary

  • Fix search relevance by running run() once, with one large query. This prevents the total_documents from being set to 0, which messes with the docScores.
  • Updated insertIndex and updateIndex to use the same searchable content as the initial index query. Keeps the searchable content consistent when publishing/saving a searchable object
  • Added description to search index task
  • Increased the steps of the search indexer engine, that way all rows are processed
  • Set mark text color to black, that way keywords in the results are visible.

Testing Steps

  • test with any compatible site
  • confirm all rows are processed
  • confirm the search relevance is improved
  • confirm the updated and new searchable records work well after saving/publishing

Git Flow

  • DO NOT delete "release/*" or "hotfix/*" branches after merging a PR. These are used to publish the next release, and they are deleted automatically.
  • "Squash and merge" is good on "feature/*" into "develop"
  • "Create a merge commit" is good on "release/*" or "hotfix/*" into "main"

…uments)

use same index content on save/publish
@tiller1010
tiller1010 requested a review from aletail June 12, 2026 18:19

@aletail aletail left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked really well!

@tiller1010
tiller1010 merged commit 9194c0b into develop Jun 12, 2026
2 checks passed
@tiller1010
tiller1010 deleted the feature/fix-index-queries branch June 12, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants