Search grouping issue with 1354 and earlier
Search grouping issue with 1354 and earlier
Everything 1.5.0.1354 and earlier versions have an issue with search groups following a search modifier with a space.
For example:
file: <a> | b
would incorrectly be treated as:
file:a OR b
The space before the group is ignored.
Everything 1.5.0.1355 fixes this issue.
file: <a> | b
is now correctly treated as:
file: AND (a OR b)
For example:
file: <a> | b
would incorrectly be treated as:
file:a OR b
The space before the group is ignored.
Everything 1.5.0.1355 fixes this issue.
file: <a> | b
is now correctly treated as:
file: AND (a OR b)
Re: Search grouping issue with 1354 and earlier
Operator precedence: AND > OR
387 808 items (335 351 files, 52 457 folders) ?
_________________________
'Everything' 1.5.0.1355a (x64)
Code: Select all
file: <a> | b
_________________________
'Everything' 1.5.0.1355a (x64)
Re: Search grouping issue with 1354 and earlier
'52 457 folders' is the expected result for AND > OR.
file: <a> | b
=>
(file: AND a) OR b
(you should see folders in your results containing 'b')
file: <a> | b
=>
(file: AND a) OR b
(you should see folders in your results containing 'b')
Re: Search grouping issue with 1354 and earlier
Mmh, unfortunately I don't understand how to bring into line "file:" with "Operator precedence: AND > OR" with these parameters:
file:, files:, folder:, folders: - Match files or folders only.
Up until now I was assuming that the file: parameter only allowed files to be in the search result - and no folders.
---
In this example, for example, no folders are output.
Operator precedence: OR > AND
335 354 items (335 354 files, 0 folders)
file:, files:, folder:, folders: - Match files or folders only.
Up until now I was assuming that the file: parameter only allowed files to be in the search result - and no folders.
---
In this example, for example, no folders are output.
Operator precedence: OR > AND
Code: Select all
file: <a> | b
Re: Search grouping issue with 1354 and earlier
Please try the following search:
file:<a | b>
=>
file:a OR file:b
The file: modifier is applied to both search terms.
Think of file: in the following case:
file: a | b
the same as:
file:* a | b
=>
(file:* AND a) OR b
(with Operator precedence: AND > OR)
With Operator precedence: OR > AND, there will be no folder results with:
file: <a> | b
=>
file:* AND (a OR b)
Consider using ::file: to match files globally with Operator precedence: AND > OR:
::file: a | b
file:<a | b>
=>
file:a OR file:b
The file: modifier is applied to both search terms.
Think of file: in the following case:
file: a | b
the same as:
file:* a | b
=>
(file:* AND a) OR b
(with Operator precedence: AND > OR)
With Operator precedence: OR > AND, there will be no folder results with:
file: <a> | b
=>
file:* AND (a OR b)
Consider using ::file: to match files globally with Operator precedence: AND > OR:
::file: a | b
Re: Search grouping issue with 1354 and earlier
Thanks.
This is what I get...
Operator precedence: OR > AND
file:<a | b>
335 423 items (335 423 files, 0 folders)
file: a | b
335 423 items (335 423 files, 0 folders)
file:* a | b
335 423 items (335 423 files, 0 folders)
Operator precedence: AND > OR
file:<a | b>
335 423 items (335 423 files, 0 folders)
file: a | b
387 880 items (335 423 files, 52 457 folders)
file:* a | b
387 880 items (335 423 files, 52 457 folders)
::file: a | b
335 422 items (335 422 files, 0 folders)
This is what I get...
Operator precedence: OR > AND
file:<a | b>
335 423 items (335 423 files, 0 folders)
file: a | b
335 423 items (335 423 files, 0 folders)
file:* a | b
335 423 items (335 423 files, 0 folders)
Operator precedence: AND > OR
file:<a | b>
335 423 items (335 423 files, 0 folders)
file: a | b
387 880 items (335 423 files, 52 457 folders)
file:* a | b
387 880 items (335 423 files, 52 457 folders)
::file: a | b
335 422 items (335 422 files, 0 folders)
Last edited by tuska on Fri Aug 18, 2023 12:23 pm, edited 1 time in total.
Re: Search grouping issue with 1354 and earlier
These are the expected results.
A space following file: will apply the file: search modifier to an empty term.
An empty term will match all files/folders.
(file: AND a) or b
You'll see files containing 'a' and files/folders containing 'b'
=>
(file:* AND a) or b
The file: search modifier is applied to the < > group.Operator precedence: AND > OR
file:<a | b>
335 423 items (335 423 files, 0 folders)
A space following file: will apply the file: search modifier to an empty term.
An empty term will match all files/folders.
=>file: a | b
387 880 items (335 423 files, 52 457 folders)
(file: AND a) or b
You'll see files containing 'a' and files/folders containing 'b'
Exactly the same as above.file:* a | b
387 880 items (335 423 files, 52 457 folders)
=>
(file:* AND a) or b
Re: Search grouping issue with 1354 and earlier
2void
Thank you very much for the explanations
Thank you very much for the explanations
void wrote: ↑Fri Aug 18, 2023 12:23 pmThe file: search modifier is applied to the < > group.Operator precedence: AND > OR
file: a | b
387 880 items (335 423 files, 52 457 folders)
A space following file: will apply the file: search modifier to an empty term.
An empty term will match all files/folders.
Re: Search grouping issue with 1354 and earlier
2void
"Operator precedence: AND > OR" and not also for "Operator precedence: OR > AND".
In the end, it still remains unclear to me why these rules then only apply to
"Operator precedence: AND > OR" and not also for "Operator precedence: OR > AND".
Re: Search grouping issue with 1354 and earlier
I take it name: is not a "search modifier"?search modifier with a space
(Man, this one confuses me. I'll have to return to it, at some point.
Anyhow, everyone should be using, or at least 99% of the time .)
Re: Search grouping issue with 1354 and earlier
The issue only applies to Operator precedence: OR > ANDIn the end, it still remains unclear to me why these rules then only apply to
"Operator precedence: AND > OR" and not also for "Operator precedence: OR > AND".
In 1534 and earlier:
file: <a>
is incorrectly treated as:
file:<a>
instead of:
file: AND <a>
There's no operation used in 1354 and earlier.
Maybe look at it this way:
<a> file:
1534 and earlier will correctly treat this as:
a AND file:
Only search modifiers can cause the issue.I take it name: is not a "search modifier"?
The issue should be minor.
I ran into the issue when performing this search:
file: <*.lnk column-a:="0"> | <* column-a:="1"> sort:column-a
1354 and earlier treated this as:
((file:*.lnk column-a:="0") OR (* column-a:="1")) AND sort:column-a
(the second group would incorrectly match folders)
1355 will correctly treat this as:
file: AND ((*.lnk column-a:="0") OR (* column-a:="1")) AND sort:column-a