Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Peke » Sun Oct 09, 2022 3:14 pm

Timo_Beil wrote: Sun Oct 09, 2022 3:27 am It just seems so. (I'm a little shocked at how inexperienced you think I am)
No, never. I am trying to figure out where we made mistake :(
As user looks like I'm just using MM differently, different language, ... like I Only have 1 track from "Desmond Dekker" in my 200k library :)

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Barry4679 » Sun Oct 09, 2022 5:26 am

Hi Timo-Bell

I think that 4.3 is a sub-set of the general fault affecting **GLOBAL** double quoted queries.

The entry in the Mantis bug list has been amended to better reflect the issues discussed in this thread.

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Timo_Beil » Sun Oct 09, 2022 3:27 am

Peke wrote: Sat Oct 08, 2022 6:17 pm Or I understand this incorrectly?
It just seems so. (I'm a little shocked at how inexperienced you think I am)
To show the differences, I have extended the table by the results from the contextual search.
In both cases, the node is Entire Library>All Tracks. OK means, all Desmond Dekker tracks are found (Not that the results make sense to me).

________________Global______________________________________Contextual
1. Ignore diacritics / Match beginning of words
1.1 "Desmond" -> ok______________________________________________ok
1.2 "desmond" -> no results_______________________________________no results
1.3 "desmond Dekker" -> ok_______________________________________ok
1.4 "Desmond Dekk" -> no results_________________________________ok

2. Ignore diacritics /Search whole words only
2.1 "Desmond" -> ok______________________________________________ok
2.2 "desmond" -> no results_______________________________________no results
2.3 "desmond Dekker" -> ok_______________________________________ok
2.4 "Desmond Dekk" -> no results_________________________________ok

3. Respect diacritics / Match within words
3.1 "Desmond" -> ok______________________________________________ok
3.2 "desmond" -> ok______________________________________________ok
3.3 "desmond Dekker" -> ok_______________________________________ok
3.4 "Desmond Dekk" -> ok_________________________________________ok

4. Respect diacritics / Search whole words only
4.1 "Desmond" -> ok______________________________________________ok
4.2 "desmond" -> ok______________________________________________ok
4.3 "Desmond Dekker" -> Only with Desmond Dekker in path______ok
4.4 "Desmond Dek" -> no results__________________________________ok

As can be easily seen, the results differ in all n.4 (except n=3).

Most critical is the bug in 4.3, where the global search only searches in the path, as I have already shown in https://www.mediamonkey.com/forum/viewt ... 05#p501605.

I do not find fault with the options offered in "Search mode".
EDIT: Thanks for clarification in mantis.

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Peke » Sat Oct 08, 2022 6:17 pm

Hi,
Timo_Beil wrote: Sat Oct 08, 2022 8:17 am !! PEKE !!...
Yes, at your service ;) Kidding, for me it looks normal that contextual works different than Global, because it adds additional filter to current filtered view, where global is on Library level, that may or may not comply with current filtered view.
Or I understand this incorrectly?

EDIT: During these tests past few days I have found that only feature I am really missing is "Ignore diacritics / match within words", but as internally talked it is limitation in SQL (unless we want that DB is 4x larger due the all various indexes, that would make it slower than it is now. In the end I am satisfied with "Respect diacritics / match within words" where I only need to pat attention to search same phrase without and with diacritics (eg. "ć" and "c") to get all the results. Benefit to this approach is that I can also see what metadata needs correction.

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Timo_Beil » Sat Oct 08, 2022 8:17 am

Barry4679 wrote: Fri Oct 07, 2022 7:24 am You are using "global search" ... I don't know if that is its official name, but that is what I call it.
I am using "Contextual Search"
[...]
But the question is why these identical queries got different results?
I suggest that the answer is that you have found a bug in the Global Search facility.
Yes, it looks like that. Contextual works differently than Global.
Let's hope that a developer looks again into this thread, that already has two links to Mantis.

!! PEKE !!... :wink:

Btw: The first time I saw the Contextual Search was in Lotus Notes' views years ago.
A surprising feature, that I missed in many other application.

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Barry4679 » Fri Oct 07, 2022 7:24 am

Timo_Beil wrote: Fri Oct 07, 2022 4:08 am To show 4.3 (search only in path), I made a little video
Two filenames contain - Desmond Dekker - . Only these files are found with " ".
I couldn't see the whole video because it was downloading very slowly, but I saw enough to see what accounts for the difference.

You are using "global search" ... I don't know if that is its official name, but that is what I call it.
I am using "Contextual Search" ... see my video here.

A "contextual search" is constrained to whatever collection you are currently viewing.
You type your criteria when the cursor is anywhere within the main panel.
It opens a hidden search control in the toolbar, as you can see in the short video.
In this case I was in the EntireLibrary node, so like you I was searching my whole collection, just using a different route.
I find it very useful, and is the only search mechanism that I use.

But the question is why these identical queries got different results?
I suggest that the answer is that you have found a bug in the Global Search facility.
Unless it another of MM5's Alice In Wonderland hidden rules .... ?

BTW, if you didn't know about the Contextual Search facility it is because this how it is covered in the online help ... which would be laughable if it wasn't so sad.

Re: Search: "foo bar" doesn't find "foo barman" [#19430] [#19436]

by Timo_Beil » Fri Oct 07, 2022 4:08 am

I use a brand new database, containing only the Desmond folder.
Only a few unimportant fields are excluded from search.
Yes, I'd closed and reopened the seach field every time.
To show 4.3 (search only in path), I made a little video
Two filenames contain - Desmond Dekker - . Only these files are found with " ".
Removing "Path" from the searched fields, no results are shown.

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Barry4679 » Fri Oct 07, 2022 12:33 am

Timo_Beil wrote: Thu Oct 06, 2022 10:25 am Now I'm completely confused.

I'd tested the behaviour with the 4 Search Options.
To avoid errors due to the localization, I have used the english version:

1. Ignore diacritics / Match beginning of words
1.1 "Desmond" -> ok
1.2 "desmond" -> no results
1.3 "desmond Dekker" -> ok
1.4 "Desmond Dekk" -> no results

2. Ignore diacritics /Search whole words only
2.1 "Desmond" -> ok
2.2 "desmond" -> no results
2.3 "desmond Dekker" -> ok
2.4 "Desmond Dekk" -> no results

[snip]

We see that 1. and 2. are completely the same.
1.2 seems to be case sensitive, but it is not, as 1.3 shows.
3.2 and 4.2 don't show this effect.
Only 3. is logical.
4.3 very curious (remains even after db maintenance).
I have only tested the Ignore diacritic" options.
I agree you comments about 1.x and 2.x ... I think that they are illogical too, but I can partially explain them.

#1 is case INsensitive as I said earlier
The reason that 1.2 gives no results is nothing to do with case ... it is because that is a single "word", no embedded blanks.
The double quote search option only works with phrases ... something that is an really stupid unnecessary gotya IMO .. and that fact is not well explained in the tool tip, and is ignored completely in the "help" text .. hint: you can quickly get to the relevant help text by pressing the F1 key, while the cursor inside in the search control.

It is what you report for 1.4 which seems wrong to me. I think that search should have returned results.
Are you sure that yo typed the closing double quote?
Which tag is Desmond Dekker in? Check Tools|options|library|search ... make sure that you have not deselected the relevant tags in the "global search" list in the bottom half of that panel.

Your result for 2.4 also seems incorrect to me.
In the confusing Alice In Wonderland world of MM, the double quoting option seems to override the "search Whole Words" vs "Match Beginning" setting ... So I would have suspected both 1.4 and 2.4 would have found your tracks. .. I am on version 5.0.4.2667.


When you did your tests, did you close the search control (auto-opening) search box, before typing the new test?

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Peke » Thu Oct 06, 2022 4:37 pm

Erwin Hanzl wrote: Thu Oct 06, 2022 3:54 pm Possibly two unnecessary questions, BUT:
1. When was the last time you did an "Add/Rescan files to the Library"?
2. Do you "continuously" monitor the folders?
If you asked me then
1. clean rebuild library by re-scanning, answer is 2004
2. only some as once tracks gets in its permanent archive place it would be pain in the constanntly haveing monitoring folder with 150k+ of tracks that have not changed 18 years.

If question was not for me then, sorry :roll: :oops:

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Peke » Thu Oct 06, 2022 4:32 pm

To make things more clear

Search bug is separated in https://www.ventismedia.com/mantis/view.php?id=19436
and
https://www.ventismedia.com/mantis/view.php?id=19430 is left as is to add/review adding all search case options for both respect/ignore diacritics settings.

Sorry for confusion, if you find any otehr case I missed let us know.

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Erwin Hanzl » Thu Oct 06, 2022 3:54 pm

Possibly two unnecessary questions, BUT:
1. When was the last time you did an "Add/Rescan files to the Library"?
2. Do you "continuously" monitor the folders?

Eventuell zwei unnötige Frage, ABER:
1. wann habt ihr zuletzt ein "Add/Rescan files to the Library" gemacht?
2. Überwacht ihr die Ordner "ständig"?

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Peke » Thu Oct 06, 2022 2:11 pm

Hi,
Looks like problem is with quotes.
First limited search to Artist, Title, Album, Album Artist, Genre.

When I search [Riblja Čorba] then I get correct results:
Image

But if I Search ["Riblja Čorba"] then I get no results even Artist is exact match:
Image

Also tooltip help do not mention different behavior according to Search Options so user can be easily confused.

EDIT: I forgot to mention that I can't replicate Timo behavior for 1, 2 For me in all 4 cases it shows results (eg. case insensitive), same I can't replicate 4.3.

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Timo_Beil » Thu Oct 06, 2022 12:28 pm

Erwin Hanzl wrote: Thu Oct 06, 2022 11:49 am Hello Timo,
And now type everything normally WITHOUT quotes. Then you get different results. (See yellow search box.)
Sure, that is not to be expected otherwise. But I would like to explain the behavior of the " " search in the German tooltips.

Supplement to 4.3:
MM searches only in the file name.
After changing it to:
"01 - Desmond Dekker - For Once In My Life.mp3" the title appears in the results.

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Erwin Hanzl » Thu Oct 06, 2022 11:49 am

Hello Timo,

And now type everything normally WITHOUT quotes. Then you get different results. (See yellow search box.)
Und jetzt geben Sie alles nochmals OHNE Anführungszeichen ein. Dann kommen Sie teils wieder zu anderen Ergebnissen.
(Siehe gelbes Suchfeld.)

Image

Re: Search: "foo bar" doesn't find "foo barman" [#19430]

by Timo_Beil » Thu Oct 06, 2022 10:25 am

Now I'm completely confused.

I'd tested the behaviour with the 4 Search Options.
To avoid errors due to the localization, I have used the english version:

1. Ignore diacritics / Match beginning of words
1.1 "Desmond" -> ok
1.2 "desmond" -> no results
1.3 "desmond Dekker" -> ok
1.4 "Desmond Dekk" -> no results

2. Ignore diacritics /Search whole words only
2.1 "Desmond" -> ok
2.2 "desmond" -> no results
2.3 "desmond Dekker" -> ok
2.4 "Desmond Dekk" -> no results

3. Respect diacritics / Match within words
3.1 "Desmond" -> ok
3.2 "desmond" -> ok
3.3 "desmond Dekker" -> ok
3.4 "Desmond Dekk" -> ok

4. Respect diacritics / Search whole words only
4.1 "Desmond" -> ok
4.2 "desmond" -> ok
4.3 "desmond Dekker" -> Only a .flac file (1 of 22 tracks)
4.4 "Desmond Dek" -> no results


We see that 1. and 2. are completely the same.
1.2 seems to be case sensitive, but it is not, as 1.3 shows.
3.2 and 4.2 don't show this effect.
Only 3. is logical.
4.3 very curious (remains even after db maintenance).

EDIT: it is not the file format.
In my Pink Floyd folder there are 243 well tagged files. "Pink Floyd" returns 77.

Top