openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

? character is not searchable

Open seabelis opened this issue 2 years ago • 3 comments

Problem

Searching for the ? character returns no results.

Screenshot 2024-11-19 at 18 59 40 Related to #7568

Reproducing the bug

  1. Go to ...openlibrary.org
  2. Do ...enter ? into the search box
  • Expected behavior: titles containing a ? should appear in results
  • Actual behavior: No results. https://openlibrary.org/search?q=title%3A+%22%3F%22&mode=everything

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N):
  • Environment (prod, dev, local): prod

Breakdown

Requirements Checklist

  • [ ]

Related files

*

Stakeholders

*


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

seabelis avatar Nov 19 '24 18:11 seabelis

hey @seabelis i'm new with open source contribution here, as of now i have check the need with the support for the "?" like previous addons were made for "@" and "#" i have added the support to "?" for the search. the code fix is added on 10046/fix/question-char-not-searchable branch you can check and merge it :)

ronibhakta1 avatar Nov 20 '24 08:11 ronibhakta1

Howdy, thanks @ronibhakta1 and great idea using that other one as a template! Assigning to you

cdrini avatar Nov 27 '24 23:11 cdrini

@cdrini @mekarpeles can you check the changes which are made as per asked, can you check that I have updated it 6 days ago

ronibhakta1 avatar Nov 29 '24 13:11 ronibhakta1