Skip to content

Content search queries with apostrophe/single quote return no results #232

Description

@alexdryden

Issue:

Testing a query for "Thirty Years' War" in an upcoming publication, we discovered that queries with ' (single quote/apostrophe) return no results when the term appears in content.

To reproduce:

Create a page with a string that contains a word with an apostrophe and try to search for that word, or search for "Brooks Institute’s Commercial Photography" from this USC publication https://scalar.usc.edu/works/wayne-thom. It should return this page, https://scalar.usc.edu/works/wayne-thom/introduction?path=index, but instead returns no results.

Here is a test page and test media where I've put an apostrophe in the page title and metadata (Metadata: dcterms:source: "testing terms with apostrophe Whistler's Mother"). Searching for "Scalar's Page Layouts" or "Whistler's Mother" returns the targeted results with either the title only or the title and content selection and searching for "Whistler's Mother" returns the correct result when selecting dcterms:source. So the issue seems to be limited to content based searches.

If you can point me in the right direction, I have some free cycles this week that I can use to troubleshoot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions