Skip to content

[BUG] Need the ability to search for word sequences #97

@TomOlson

Description

@TomOlson

Describe the bug
The search box does not support searching for sequences of words, for example "Khronos Data Format Specification". As you type the sequence, the results displayed are only for the most recent full word in the string you've entered. Since the first three words are very common in the specification, it is impossible to find what you are looking for. If you can find the right chapter, HTML search will find the sequence, since every browser I've tried handles search multi-word search strings just fine. But finding that chapter is painful. As it is, AFAICT my best option is to clone the repo and run grep on the source files.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the docs site home page
  2. Type "Khronos Data Format" into the search box, observing how the search results change as you type.
  3. Note that from "Khrono" to "Khronos Dat", the search results are for the string "khronos". After you type the final "a" in "Khronos Data", they change to show all matches to the word "Data". Similarly, after you type the final "t" in "Khronos Data Format", you get all matches for "format".

Expected behavior
I expect to find matches to the string I typed, including blanks; fine (preferred) if sequences of whitespace characters (tab, CR, LF, space) are considered to match a blank.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 130.0.6723.70, FireFox 131.0.3
  • Version [e.g. 22]

Metadata

Metadata

Assignees

Labels

searchimprove search

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions