Need help to build custom search query

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
verviers
Posts: 40
Joined: Tue Nov 01, 2022 7:48 am

Need help to build custom search query

Post by verviers »

Some files have custom properties like these

Code: Select all

custom-property-1
custom-property-2
custom-property-3
Need to find files with word contained in these properties. As for example

Code: Select all

TestWord
How to simplify the query in order not to write "TestWord" 3 times?

Code: Select all

<custom-property-1:TestWord>|<custom-property-2:TestWord>|<custom-property-3:TestWord>
Was pretty sure that smth like this works

Code: Select all

<custom-property-1:|custom-property-2:|custom-property-3:>TestWord
But it lacks
void
Developer
Posts: 16839
Joined: Fri Oct 16, 2009 11:31 pm

Re: Need help to build custom search query

Post by void »

To search multiple properties:

custom-property-1:TestWord | custom-property-2:TestWord | custom-property-3:TestWord



Please consider the following filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: My Properties Search
    (can be anything you like)
  • Change the Search to: custom-property-1:$param: | custom-property-2:$param: | custom-property-3:$param:
  • Change the Macro to: mps
    (can be anything you like)
  • Click OK.
Now you only need to search for:
mps:TestWord
which will expand to:
custom-property-1:TestWord | custom-property-2:TestWord | custom-property-3:TestWord
verviers
Posts: 40
Joined: Tue Nov 01, 2022 7:48 am

Re: Need help to build custom search query

Post by verviers »

void
Thank you. Exactly what I need.
Post Reply