Browse Source

fix some more search queries (#1763)

pull/1764/head
Jason Dove 2 years ago committed by GitHub
parent
commit
109960c457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Infrastructure/Search/CustomMultiFieldQueryParser.cs

1
CHANGELOG.md

@ -66,6 +66,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -66,6 +66,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Fix some cases of 404s from Plex when files were replaced and scanning the library from ETV didn't help
- Fix more wildcard search phrase queries (when wildcards are used in quotes, like `title:"law & order*"`)
- Fix non-wildcard simple queries when asterisks are used in quotes, like `title:"m*a*s*h"`
- Fix bug where channels would unnecessarily wait on each other
- e.g. in-progress streams would delay responding with a playlist when new streams were starting
- Update Plex show title in ETV when changed in Plex

2
ErsatzTV.Infrastructure/Search/CustomMultiFieldQueryParser.cs

@ -96,7 +96,7 @@ public class CustomMultiFieldQueryParser : MultiFieldQueryParser @@ -96,7 +96,7 @@ public class CustomMultiFieldQueryParser : MultiFieldQueryParser
}
// assume asterisk always means wildcard
if (queryText.Contains('*'))
if (queryText.Contains('*') && queryText.Contains(' '))
{
var parser = new ComplexPhraseQueryParser(_matchVersion, LuceneSearchIndex.TitleField, _analyzer)
{

Loading…
Cancel
Save