Tagging, Searching and Counting

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

Re: Tagging, Searching and Counting

Post by Leito »

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: 13274
Joined: 06 Feb 2011 00:33

Re: Tagging, Searching and Counting

Post by highend »

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

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

Re: Tagging, Searching and Counting

Post by Leito »

@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: 13274
Joined: 06 Feb 2011 00:33

Re: Tagging, Searching and Counting

Post by highend »

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

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

Re: Tagging, Searching and Counting

Post by TedL1972 »

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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

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: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito »

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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

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: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito »

TedL1972 wrote: 07 Feb 2019 22:08I 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: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Tagging, Searching and Counting

Post by Leito »

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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

Leito wrote: 08 Feb 2019 08:09
TedL1972 wrote: 07 Feb 2019 22:08I 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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

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: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tagging, Searching and Counting

Post by admin »

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: 64
Joined: 15 Nov 2018 18:49

Re: Tagging, Searching and Counting

Post by TedL1972 »

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