On well written searches...
Posted: 12 Mar 2012 23:01
Today I entered the world Multi Field Search for the first time. I wanted to replicate (and extend) the action "Find All" and "In This Branch" of button "Find by Label" in a comfortable Catalog item.
The search performed via the button is extremely fast, since it just involves scanning a text file (on my system it takes 90 ms for 160 items).
In the Catalog I placed this line:
and everything worked as expected, thanks to the insight provided in the release notes ( http://www.xyplorer.com/xyfc/viewtopic. ... 220#p69366 ).
Now, what if I wanted to make it more general and consider tags and comments too, yet mantaining this speed performance?
I basically want to retrieve every object with a label OR a comment OR a tag in the current path and all the subfolders.
The following don't do the trick, since going to My Computer (so to catch everything) and running the search triggered the classical slow folder scan:
Any ideas?
The search performed via the button is extremely fast, since it just involves scanning a text file (on my system it takes 90 ms for 160 items).
In the Catalog I placed this line:
Code: Select all
?:lbl:?* and name:* /rNow, what if I wanted to make it more general and consider tags and comments too, yet mantaining this speed performance?
I basically want to retrieve every object with a label OR a comment OR a tag in the current path and all the subfolders.
The following don't do the trick, since going to My Computer (so to catch everything) and running the search triggered the classical slow folder scan:
Code: Select all
?:lbl:?* and name:* or tags:?* or cmt:?* /r
?:(lbl:?* and name:*) or (tags:?* and name:*) or (cmt:?* and name:*) /r