embyuser24 36 Posted July 23, 2018 Share Posted July 23, 2018 Hi, The current implementation of Emby search is very basic. Based on what I can tell, it only matches exact strings in the same exact order. Example: "Mission: Impossible" In this example the following queries will return a positive match Possible Impossible Mission Mission: Impossible And the following queries will not return anything at all (The worst offenders are highlighted) Mission Impossible Missoin: Imposible Imposible Impossible Mission Mission : Impossible Mission Impossible Another example would be "Mr. Robot" where if the dot is missing, nothing is returned or in general terms any variation of any string that is not an exact match will not return anything at all. Let's not even attempt to try a title like "Agents of S.H.I.E.L.D.". This makes the search difficult to use and at times even frustrating. As the examples above show, the major theme is special characters and punctuation and they can probably be bypassed by just ignoring them, which might or might not cause other problems in the process. This problem also affects titles that have letters with diacritical marks or glyphs such as "Amélie" and "Æon Flux", if you can't type them exactly, you can't find them. In my opinion a better attempt would be to use a difference string matching algorithm such as Levenshtein distance, you can then define an acceptable threshold and return the closest matches. I found a couple of C# projects that implement this and might be useful as a starting point. FuzzyWuzzy, a port of Python project in C#. https://github.com/BoomTownRoi/BoomTown.FuzzySharp FuzzyString. Has some additional string comparison algorithms too. https://github.com/kdjones/fuzzystring Thanks. 16 Link to comment Share on other sites More sharing options...
Luke 32468 Posted July 23, 2018 Share Posted July 23, 2018 Hi yes, it's something we're interested in for the future. thanks. Link to comment Share on other sites More sharing options...
legallink 183 Posted July 23, 2018 Share Posted July 23, 2018 +1 on this. Link to comment Share on other sites More sharing options...
legallink 183 Posted July 23, 2018 Share Posted July 23, 2018 +1 on this. Link to comment Share on other sites More sharing options...
invertedknife 13 Posted July 24, 2018 Share Posted July 24, 2018 +1 on this Link to comment Share on other sites More sharing options...
adrianwi 178 Posted July 24, 2018 Share Posted July 24, 2018 +100 Link to comment Share on other sites More sharing options...
embyuser24 36 Posted January 28, 2019 Author Share Posted January 28, 2019 The new search improvements in v4.0 are great and very welcomed! Are there any plans for implementing nearest match searches in cases of misspelled words/phrases? Link to comment Share on other sites More sharing options...
Luke 32468 Posted January 28, 2019 Share Posted January 28, 2019 It's possible for the future. Thanks ! Link to comment Share on other sites More sharing options...
Bottles51 47 Posted December 15, 2022 Share Posted December 15, 2022 Can we please have the apostrophe excluded in the web browser searches. It is easy to forget adding one in especially when pasting in a title. You may have the title and forget to add the apostrophe and not realize it. Link to comment Share on other sites More sharing options...
Luke 32468 Posted December 17, 2022 Share Posted December 17, 2022 HI, yes this is something that needs to be improved. Thanks. Link to comment Share on other sites More sharing options...
Jägs 44 Posted January 5 Share Posted January 5 I'd just like to expand the scope on this a bit since the original request was video specific, but with improvements made to the music side of the shop, it'd be great to include artist and title (or album) in the search as well, as I outline here: 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now