internetarchive / internetarchive/openlibrary

? character is not searchable

Open
#10,046 3 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Priority: 4 Theme: Search Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### 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](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date **before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) 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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue at the provided openlibrary.org search URL by querying the ? character, then trace the search entry point and compare it with related issue #7568. No files or tests are named, so first locate the search implementation and its existing coverage. Done means titles containing ? appear in search results without breaking other queries.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.