Tagging, Searching and Counting

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Leito
Posts: 533
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito » 07 Feb 2019 08:45

Replace:

Code: Select all

$tagged = quicksearch("tags:$fruit", "*", , "s");
with:

Code: Select all

$tagged = quicksearch("tags:$fruit", , , "s");
EDIT: ... to search in the current path.
Last edited by Leito on 07 Feb 2019 08:48, edited 1 time in total.

highend
Posts: 8209
Joined: 06 Feb 2011 00:33

Re: Tagging, Searching and Counting

Post by highend » 07 Feb 2019 08:48

You are NOT using the script you've quoted there so maybe you post the real script you're using first...
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

Leito
Posts: 533
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito » 07 Feb 2019 08:49

@highend:

Regarding the error, seems like a bug, no? This script returns "Search location currently not available" while it should search the whole computer according to the Help file.

Code: Select all

text quicksearch("tags:Rock", "*");

highend
Posts: 8209
Joined: 06 Feb 2011 00:33

Re: Tagging, Searching and Counting

Post by highend » 07 Feb 2019 08:51

Maybe an issue because of one of the last changes how paths are resolved...
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 07 Feb 2019 17:43

Yes, the issue is with ANY quicksearch run in script:

text quicksearch("tags:Rock", "*",); returns the same error:

\\....\*\ - Search location currently not available

?

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 07 Feb 2019 21:24

Is this a bug of the new version? Shall I re-install the earlier version of XYplorer which seemed to be working OK
with search and tags?

Leito
Posts: 533
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito » 07 Feb 2019 21:33

Yes you could.

Or wait for Don to fix the bug (he probably will fix it quickly) and install the beta.

Or use what I've posted earlier, but know that it will search in the current path only:

Code: Select all

$tagged = quicksearch("tags:$fruit", , , "s");

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 07 Feb 2019 22:08

Thanks, I will probably wait for the fix.

I tried your line of script and while didn't get any error messages didn't result in any item found.

I verified that the documents are properly tagged and I also reloaded the tag database using the
option on the Favorites drop down menu.

Leito
Posts: 533
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito » 08 Feb 2019 08:09

TedL1972 wrote:
07 Feb 2019 22:08
I tried your line of script and while didn't get any error messages didn't result in any item found.
Please post the complete script you used.

Leito
Posts: 533
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito » 08 Feb 2019 11:02

TedL1972 wrote:
07 Feb 2019 22:08
Thanks, I will probably wait for the fix.
This has been fixed in beta 19.60.0011:

Code: Select all

v19.60.0011 - 2019-02-08 10:38
    ! SC quicksearch: Since 20190128 the special character "*" for "This PC" 
      (search everywhere) was not recognized anymore. Fixed.
You can upgrade and try it again.

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 08 Feb 2019 20:04

Leito wrote:
08 Feb 2019 08:09
TedL1972 wrote:
07 Feb 2019 22:08
I tried your line of script and while didn't get any error messages didn't result in any item found.
Please post the complete script you used.
$tagged = quicksearch("tags:$fruit", , , "s");

I also tried $tags instead of $tagged and I get the same i.e. zero items found.

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 08 Feb 2019 20:05

Leito wrote:
08 Feb 2019 11:02
TedL1972 wrote:
07 Feb 2019 22:08
Thanks, I will probably wait for the fix.
This has been fixed in beta 19.60.0011:

Code: Select all

v19.60.0011 - 2019-02-08 10:38
    ! SC quicksearch: Since 20190128 the special character "*" for "This PC" 
      (search everywhere) was not recognized anymore. Fixed.
You can upgrade and try it again.
I did install the latest Beta and now the earlier script from HIGHEND works perfectly! Thanks very much.

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 14 Feb 2019 02:15

A couple of points of possible improvement on the tagging of documents.

Currently I could not find any way to make an alphabetical list of all the tags that have been set. There are various way to pull the full list of tags but the list is fixed and ordered according to the last time a tag was set, I can't find any way to list them in alphabetical order.

This becomes burdensome when there are 10 or more tags to add for a new document i.e. one has to go up and down several times to find the right one. Any idea on how this could be overcome?

Also what is best way to back up the tags? I had to install the new version of XYPlorer and I lots 1/3 of the tags. Not a huge problem now as they were not many but I would like to know how to avoid this in the future. Thanks

admin
Site Admin
Posts: 47182
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Tagging, Searching and Counting

Post by admin » 18 Feb 2019 16:45

The Tag List is stored in file "XYplorer.ini" under key TagsList.

You can edit and sort this list here: Tools | List Management | Tag List...

TedL1972
Posts: 19
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 » 25 Feb 2019 05:16

Got it on the XYplorer.ini, great advice.

Ditto on the other point. It worked by going to

Tools | List Management | Tag List...

Then sort and with one click the tags were listed alphabetically!

Awesome!

Post Reply