Skip to content

Improve search experience - #83

Closed
mattstein wants to merge 5 commits into
mainfrom
feature/search-refactor
Closed

mattstein wants to merge 5 commits into
mainfrom
feature/search-refactor

Conversation

@mattstein

@mattstein mattstein commented Oct 5, 2020 •

Copy link
Copy Markdown
Contributor

Improve indexing and result presentation to improve upon some cases that yield less-than-relevant results.

To Improve

  • overall readability of search service
  • don’t display page title twice (left result column and again on the right)
  • explicitly define index storage fields
  • reduce weight of custom keywords added in page frontmatter (equal to content match)
  • make sure all results provide some sense of context
  • search for graphql should return the Console Commands subheading just like backup does
  • search for entry query should return results that prioritize exact uses of that phrase (currently results with one of those words in the title and another in the body score higher)

Matt Stein added 2 commits October 4, 2020 18:39
Updates:
- Expose explicit settings, generally clean up search service for readability.
- If no custom keywords are set, the `keywords` page field is set to `null` instead of empty string.
- Don’t display page title twice; only subheadings to the right in a result.
- Explicitly define index storage fields.

Outstanding issues:
- CJK still returns results that happen to be useful even though they’re inconsistent.
- A search for `graphql` does not return the console command from the regular index despite being a heading, not having much result competition, and having its `backup` sibling (heading + same page) return a result as expected.
- A search for `entry query` prioritizes individual keyword results (`entry` in title, `query` in body) over exact matches (`entry query` in body).
@mattstein mattstein changed the title Feature/search refactor Improve search experience Oct 5, 2020
@mattstein mattstein self-assigned this Oct 5, 2020
@mattstein mattstein linked an issue Oct 5, 2020 that may be closed by this pull request
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.

[Feature Request] live search pagination

2 participants