Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow web style and JAV title searching #711

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

Flashy78
Copy link
Contributor

@Flashy78 Flashy78 commented Sep 28, 2023

  • Updates the scene search table to allow for JAV titles by leaving in hyphens and colons. Previously you could only match JAV titles such as EMS-259 directly on the scene code field, now you can also directly match the title.
  • Switches to websearch_to_tsquery to allow users to double quote words as a search phrase and using the dash to ignore words.
  • Changes the text search formats to all use english as the search configuration, since the default_text_search_config is english. That's what plainto_tsquery was defaulting to, and I added to websearch_to_tsquery to be explicit.
    • For scene code EMS-259, the to_tsvector('simple') would produce ems and -259, while to_tsvector('english') would convert it to em and -259, meaning they would never match. This is why searching for EMS-259 cannot find https://stashdb.org/scenes/c5cd9919-727c-41bc-bd66-d515a0c1b5cc
    • Dates don't appear to be affected by the change.

@InfiniteStash InfiniteStash merged commit 65cf377 into stashapp:master Feb 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Search returns no match when search pattern contains a dash
2 participants