Multiple "Content:" - I am confused

Discussion related to "Everything" 1.5.
ChrisGreaves
Posts: 834
Joined: Wed Jan 05, 2022 9:29 pm

Multiple "Content:" - I am confused

Post by ChrisGreaves »

I am confused about lists of values in general, but lists of CONTENT in particular.
MultipleContent01.jpg
(1) Three separate Content: terms provide an expected result.
MultipleContent02.jpg
(2) Content: terms separated by a semi-colon do NOT provide an expected result.
[tab]
MultipleContent03.jpg
(3) Content: terms embraced in the grouping angle-brackets DO provide an expected result.

I seem to have grasped the idea of semi-colon delimiters from reading about Everything somewhere on this web site.

(later) I ***have*** grasped the idea that a space separator implies "AND", so I am making progress! :D

Please and Thank you
(a) Where should I be using semi-colons and
(b) By default should I try with the angle-brackets where'er I wander
Thanks
Chris
You do not have the required permissions to view the files attached to this post.
tuska
Posts: 1410
Joined: Thu Jul 13, 2017 9:14 am

Re: Multiple "Content:" - I am confused

Post by tuska »

Maybe these two search functions will help?

Sub-expressions (e.g. content:)
Lists
void
Developer
Posts: 20078
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple "Content:" - I am confused

Post by void »

(2) Content: terms separated by a semi-colon do NOT provide an expected result.
Full-text search functions (such as `content:`) treat semicolons as part of the search text rather than as list delimiters.
I'll make a note of this.

Semicolon lists are are treated as OR lists.

For example:
width:1920;3840

is the same as:
width:1920 | width:3840
match files with a width of 1920 OR 3840


(a) Where should I be using semi-colons
With properties (not content) and when you want to match against an OR list of values.



(b) By default should I try with the angle-brackets where'er I wander
For content and property functions where you want to match against an AND list of values.
ChrisGreaves
Posts: 834
Joined: Wed Jan 05, 2022 9:29 pm

Re: Multiple "Content:" - I am confused

Post by ChrisGreaves »

tuska wrote: Thu Jul 23, 2026 4:13 pmMaybe these two search functions will help?
Thank you Tuska; they do help.
MultipleContent04.jpg
I trialed using the vertical bar as the inclusive OR function and got the results i expected with OR. The number of documents describing a trip to Paris mentioning something about a station on the metro and a direction easterly is nine; no surprises there.
I was not looking for an OR, though, I was hunting for the story surrounding a lady from the Eastern states of Australia who wanted to go to the catacombs at the metro station "Denfert Rochereau".
Sub-expressions: The first example confirms my use of the grouping angle-brackets and confirms my use of <space> as an AND operator.
The second example shows me the use of vertical bar for OR.
Lists: " ... any search function that accepts a number, date or text". Now this describes my situation, my search terms consist of three items of text, "denfer", "rocher", and "eastern".
However, here I would expect "w:\ ext:doc \paris content:denfert;rocher;eastern" to be treated as in "Everything will treat the list as an OR list.". That does not happen. My second image in my first post shows that I obtained ZERO results, whereas a different OR expression returns NINE results, as shown in my image in this response.

Therein lies my confusion!

Now on to Void's post.
Thanks again.
You do not have the required permissions to view the files attached to this post.
ChrisGreaves
Posts: 834
Joined: Wed Jan 05, 2022 9:29 pm

Re: Multiple "Content:" - I am confused

Post by ChrisGreaves »

Thank you Void.
void wrote: Fri Jul 24, 2026 2:35 amFull-text search functions (such as `content:`) treat semicolons as part of the search text rather than as list delimiters.
So when using the "content: function, semi-colons are given a recognition priority as being just another piece of text?
In my first post, my second example was interpreted as a single string "denfer;rocher;eastern" - a string of 21 characters. I had somehow thought of a semi-colon being a delimiter operation, separating sub-strings within a string.
I must disabuse my self of this thought.
Semicolon lists are are treated as OR lists.
... except when following the "content:" function/operator, for then the semi-colons are subdued(?) to be just the elemental punctuation characters (as in my 21-character string above".
That I find confusing.
For example:
width:1920;3840

is the same as:
width:1920 | width:3840
match files with a width of 1920 OR 3840
but
content:1920;3840

is NOT the same as:
content:1920 | content:3840
match files with a content of 1920 OR 3840

I think that I am correct in using that as a counter-example.
"Content:" is an esoteric animal (grin)
(a) Where should I be using semi-colons
With properties (not content) and when you want to match against an OR list of values.
Here "properties" refers to characteristics of the file CONTAINER, correct?
Whereas "content" (doh!) refers to the contents of the container.
Got it.

I think that I was considering "content" to be just-another-characteristic or property of a file.
Everything makes a sharp distinction between the container and the contents.

If so, where does SHA fall? Is SHA a property of the container, or is SHA a property of the contents of the container.
(b) By default should I try with the angle-brackets where'er I wander?
For content and property functions where you want to match against an AND list of values.
So the Golden Rule would be "use angle-bracket grouping when you want to AND items". Is that correct?

I think that now i am less confused than I was two days ago.
Of course, I'm wondering what I have missed/lost over the past three years with my misconceptions.
Cheers, Chris
ChrisGreaves
Posts: 834
Joined: Wed Jan 05, 2022 9:29 pm

Re: Multiple "Content:" - I am confused

Post by ChrisGreaves »

ChrisGreaves wrote: Fri Jul 24, 2026 8:57 pmIf so, where does SHA fall? Is SHA a property of the container, or is SHA a property of the contents of the container.
OK. If "Content:" is a function on the CONTENTS of a file (container)
And if "SHA:" is a function on the CONTENTS of a file (container)
might we please have a list of functions such as CONTENT and SHA that operate on the contents of a file container? These functions would seem to be a special category of functions.
Thanks, Chris
void
Developer
Posts: 20078
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple "Content:" - I am confused

Post by void »

So when using the "content: function, semi-colons are given a recognition priority as being just another piece of text?
Yes, the
;
in the search is treated as literal text.
I have updated the documentation to:

Semicolon (;) delimited lists can be used with any property search function.
Semicolons can be escaped with double quotes (").

Full-text search functions (such as
content:
) treat semicolons as part of the search text rather than as list delimiters.


In my first post, my second example was interpreted as a single string "denfer;rocher;eastern" - a string of 21 characters. I had somehow thought of a semi-colon being a delimiter operation, separating sub-strings within a string.
It is, but only for basic metadata property search functions, like
album:
or
artist:

(where ; is unlikely to be in the property value)


Semicolon lists are are treated as OR lists.
... except when following the "content:" function/operator, for then the semi-colons are subdued(?) to be just the elemental punctuation characters (as in my 21-character string above".
That I find confusing.
Semicolons passed to content: are treated as literal semicolons.
They are not operators.
Semicolons can naturally occur in content, so I avoided allowing semicolons as an OR operator with content:


Here "properties" refers to characteristics of the file CONTAINER, correct?
A property search function is a search function on a basic Everything property, like album and artist.
(any property that is listed under right-click result list column header -> Add columns)
This doesn't include content.


I think that I was considering "content" to be just-another-characteristic or property of a file.
Interally, content is just a property.
So I can understand this perspective.

However, it is treated slightly differently.
For example, you cannot add a content column.


If so, where does SHA fall? Is SHA a property of the container, or is SHA a property of the contents of the container.
SHA functions support semicolon (;) lists.
SHA functions are basic Everything property search functions.
SHA values do not contain semicolons so this works well.


So the Golden Rule would be "use angle-bracket grouping when you want to AND items". Is that correct?
Yes.
This is ideal for content: because the value can contain a lot of text so you'll naturally want to AND multiple search terms.
It doesn't make a lot of sense for properties with small values, like artist because naturally you would just search for the whole text.
For example:
author:"David Carpenter"
instead of
author:<David Carpenter>


So AND is better for long values where you want to AND multiple search terms.


OK. If "Content:" is a function on the CONTENTS of a file (container)
And if "SHA:" is a function on the CONTENTS of a file (container)
might we please have a list of functions such as CONTENT and SHA that operate on the contents of a file container? These functions would seem to be a special category of functions.
I'm working on a content function category here:
https://www.voidtools.com/support/everything/search_functions/#all

You can find this list in Everything:
Right click the result list column header.
Click Content on the left.
These properties all have an associated search function with the same name. (change spaces to -)