This search cannot be used properly
This search cannot be used properly, need to improve this bug
Hi @HHC26, thank you for reporting. PRs are welcome or we can look into it later.
If you want to disable search and implement custom you can do it using disableSearch option.
@AlexVarchuk,
The search term "get" would've never yielded results because Lunr is being configured with stopWordFilter. This change appears to have been in place for a long time now.
https://github.com/Redocly/redoc/blob/d193dd2627b88309eca3cec4973ba5bea2906740/src/services/SearchWorker.worker.ts#L31
If you take a look at the implementation of this filter, it includes the word "get".
https://github.com/olivernn/lunr.js/blob/aa5a878f62a6bba1e8e5b95714899e17e8150b38/lib/stop_word_filter.js#L78
If stopWordFilter is redacted, the search results for the demo should include GET-based endpoints.
I'd be happy to submit a pull request to remove it altogether, or to put the removal behind some kind of global setting.
I tested and cannot reproduce the issue.