Let's say I have the contents of all .ocf files indexed (they're just .txt files with a fancy extension). Each of these files is a "sidecar file" for another file, which:
* Is in the same folder as the .ocf, with the same name but without the extension (e.g. myfile.txt, its sidecar would be myfile.txt.ocf).
* Or is in a specific folder. In that case, the sidecar name is in the full path as a subfolder (e.g. h:\folder\my_file.txt would have a sidecar at c:\ocf_files\h\folder\my_file.txt.ocf).
How could I get all the files whose sidecar file contains certain text?
Is it possible to do a search like that?
Thanks.
Results based on content in a peculiar way
Re: Results based on content in a peculiar way
Code: Select all
SEARCH("mytag",GETPROPERTY($path:"\"$name:".ocf","content")) | SEARCH("mytag",GETPROPERTY("C:\ocf_files\"SUBSTITUTE($path:"\"$name:".ocf",":",""),"content"))This search will be extremely slow.
Combine with other search filters for the best performance.
Formulas
Re: Results based on content in a peculiar way
Thanks void.
Does having the content of my .ocf files indexed make a difference in speed?
Does having the content of my .ocf files indexed make a difference in speed?
Re: Results based on content in a peculiar way
Yes, indexing ocf content will improve performance.
GETPROPERTY() will use indexed property values (content) if available.
The search will still be rather slow, so combine with other search filters for the best performance.
GETPROPERTY() will use indexed property values (content) if available.
The search will still be rather slow, so combine with other search filters for the best performance.