Seems to me there is a %LIKE% in the SQL statement but when filtering on screen, there is the following:

class EqComparator : public SearchTermComparator {
 public:
  explicit EqComparator(const QString& value) : search_term_(value) {}
  virtual bool Matches(const QString& element) const {
    return search_term_ == element;
  }

As the search words are handled word by word, there is no longer an approximate match but an exact match on word by word basis. As such, there is a match if your search string is the beginning of a word but not when searching as of second character.

Why not use something like a unicode collation that will see all characters : e é è ë E as the same character, or alternatively do a search advanced in which you list the exact match first and then complete it with a second search with soundex alike functions to complete the search with less expected results. (Attention, soundex is different depending on native language of end user)


Le 17/11/2019 à 06:39, Stephen Meatheringham a écrit :
Peter, thanks for taking the time to reply.
I was hopeful that one of the people responsible for the program would read my post and be able to answer quickly. I will take a look at the code and modify it to work the way that I require. I am always wary of modifying code to suit myself and later finding that my modifications are incompatible with a future release.

regards
Stephen Meatheringham
Canberra, Australia

On Sunday, 17 November 2019 15:25:12 UTC+11, Peter Tipping wrote:

    Or maybe people do still read this forum and maybe people can
    reproduce the problem, and maybe since they haven't read the
    source code they don't know if this is the expected behaviour or
    not, hence didn't reply to the single question with an answer of
    "I'm not sure, I haven't read the source code".

    Most indexing is done at the word level, hence, this could well be
    behaving exactly as expected. Without reading the source code
    though, I don't know.

    The only real way to your question is to grab the source code &
    have a read.

    Peter.

    On Sun, 17 Nov 2019 at 13:55, Stephen Meatheringham
    <[email protected] <javascript:>> wrote:

        Looks like either no one reads this forum any longer or no one
        can reproduce the behaviour that I see.

        On Friday, 15 November 2019 11:29:29 UTC+11, Stephen
        Meatheringham wrote:

            Good Morning

            I am running Clementine 1.3.1 under Linux Mint 19.2.

            If I search my audio library for a complete word, a
            string, say, "K456". Then it is found.
            If I am looking for a sub-string that occurs at the
            beginning of a word, say, "K45". Then it is found. It will
            pick up K456, K457, ...
            However, if I am looking something that ends in "456"
            (because, for example, I cannot recall whether I have used
            K.456 or K456 in my naming) then it will not find anything
            ending in "456".

            In summary:
            Complete "words" are found.
            Sub-strings that begin "words" are found.
            Sub-strings within words or ending words are not found.

            Is this the expected and desired behaviour?

            Thanks in advance for any advice.

            regards
            Stephen Meatheringham
            Canberra, Australia

-- You received this message because you are subscribed to the
        Google Groups "Clementine Music Player" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to [email protected] <javascript:>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/clementine-player/aa29f821-c420-47eb-8005-8e6b13f86200%40googlegroups.com
        
<https://groups.google.com/d/msgid/clementine-player/aa29f821-c420-47eb-8005-8e6b13f86200%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Clementine Music Player" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/clementine-player/cd983a42-962e-440d-a4e4-a6ea450caeb2%40googlegroups.com <https://groups.google.com/d/msgid/clementine-player/cd983a42-962e-440d-a4e4-a6ea450caeb2%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Yves De Billoëz
[email protected], [email protected]
+243 8249 65667 (+Whatsapp)
Skype: ydebilloez

--
You received this message because you are subscribed to the Google Groups 
"Clementine Music Player" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clementine-player/e80057e8-5060-abd4-b3aa-b074d74f87f8%40gmail.com.

Reply via email to