❓ Content search brings 0 results

Discussion related to "Everything" 1.5.
Post Reply
wise_mike
Posts: 15
Joined: Thu Mar 21, 2024 9:52 am

❓ Content search brings 0 results

Post by wise_mike »

Hi,

I just installed Everything 1.5 Alpha for content search purpose, added the include only folder, and filetypes, but it does nothing. I tried searching for html files that has the text "jpg" using content:"jpg" command, but nothing shows, and nothing seemed indexed. No progress bar in the program's taskbar.

Should I be changing any other options in the program to work? What am I doing wrong?

I have Windows 10 search disabled as I don't use it and it slows the computer, could that be the reason? Is Everything dependent on Windows Search Index?

Thanks,

Image
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: ❓ Content search brings 0 results

Post by NotNull »

Please uncheck the Exclude not content indexed in the dialog of your screenshot.

If checked, Everything will Exclude files and folders with the not content indexed attribute
The not content indexed attribute will be set (or not) by Windows Search.

Unchecking Exclude not content indexed will make Everything index the specified content, regardless of the Windows Search configuration.
wise_mike
Posts: 15
Joined: Thu Mar 21, 2024 9:52 am

Re: ❓ Content search brings 0 results

Post by wise_mike »

Works great.. Thanks.

A couple of questions:
1- Is there a "count" option that shows how many matches in each file for the search term? I found a "Run Count" column, most of the time it shows no numbers.

2- In the Options > Indexes > Database Location, I changed to a certain folder. Now the indexer is still running indexing thousands of document content, but the folder I change the DB location to is still 607 bytes. Isn't there a database file like sql or something the stores the content so it doesn't re-index them each time I open the program (if they are unchanged files)?

Thanks for the great program.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

1- Is there a "count" option that shows how many matches in each file for the search term? I found a "Run Count" column, most of the time it shows no numbers.
A Content Occurrence Count property is on my TODO list.

For now, please consider the following filter:
From the Search menu, click Add to filters...
Change the Name to:
Content with Count
Change the Search to:

Code: Select all

content:search: add-column:a a-label:"Content Count" a:=(LEN(REMOVEDIACRITICS(LOWER($content:)))-LEN(SUBSTITUTE(REMOVEDIACRITICS(LOWER($content:)),REMOVEDIACRITICS(LOWER(search:)),"")))/LEN(REMOVEDIACRITICS(LOWER(search:)))
Change the Macro to:
cc<search>
Click OK.

Instead of using content: use cc:


2- In the Options > Indexes > Database Location, I changed to a certain folder. Now the indexer is still running indexing thousands of document content, but the folder I change the DB location to is still 607 bytes. Isn't there a database file like sql or something the stores the content so it doesn't re-index them each time I open the program (if they are unchanged files)?
Everything stores the database in memory.
The database is written to disk when you exit Everything.
wise_mike
Posts: 15
Joined: Thu Mar 21, 2024 9:52 am

Re: ❓ Content search brings 0 results

Post by wise_mike »

Great support! Thanks a million.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

The following filter search fixes an issue with evaluating the parameter.

Code: Select all

content:"#[REGEXREPLACE:search:#]:" add-column:a a-label:"Content Count" a:=(LEN(REMOVEDIACRITICS(LOWER($content:)))-LEN(SUBSTITUTE(REMOVEDIACRITICS(LOWER($content:)),REMOVEDIACRITICS(LOWER("#[REGEXREPLACE:search:#]:")),"")))/LEN(REMOVEDIACRITICS(LOWER("#[REGEXREPLACE:search:#]:")))
search: => "#[REGEXREPLACE:search:#]:"

I'm working on a cleaner solution...
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: ❓ Content search brings 0 results

Post by NotNull »

void wrote: Wed Mar 27, 2024 5:32 am I'm working on a cleaner solution...
And you did! (by introducing the STRINGCOUNT() formula)

Filter:

Code: Select all

Name = Content with Count
Search = content:search:   addcol:A   A-label:="Content Count"   A:=STRINGCOUNT($content:,search:)
Macro = cc<search>
Search:
cc:"hello world"

Result:
In the extra Content Count column will be shown how many times "hello world" was detected in each file.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

Please use the following to ignore case and diacritics:

Code: Select all

Name = Content with Count
Search = content:search:   addcol:A   A-label:="Content Count"   A:=STRINGCOUNT(REMOVEDIACRITICS(LOWER($content:)),REMOVEDIACRITICS(LOWER(search:)))
Macro = cc<search>
KoalaBear
Posts: 5
Joined: Fri Nov 24, 2023 10:58 am

Re: ❓ Content search brings 0 results

Post by KoalaBear »

Sorry for reviving this. I'm using the latest (alpa) version and would like to use the STRINGCOUNT with content, except this content is not indexed.

I wanted to have a column matching some (error) message from logfiles and see when and how many times it occurs. But you shouldn't add all "*.log" files to the content mechanism as it will be read into system memory :)

I tried to use utf8content:

Code: Select all

*.log addcolumn:a a:=STRINGCOUNT($utf8content:,"ERROR") sort:a-descending
That works 'outside' of the STRINGCOUNT.

Is there any way to do this, or implement these incidental use cases which are very useful? Thanks in advance!
Last edited by KoalaBear on Tue Jul 01, 2025 9:58 am, edited 1 time in total.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

$utf8content: is not a property.

Please try the following:

*.log addcolumn:a a:=STRINGCOUNT($content:,"ERROR") sort:a-descending


Everything will treat the log files as text/plain when using $content:

edit: $utf8content: is now a property.
KoalaBear
Posts: 5
Joined: Fri Nov 24, 2023 10:58 am

Re: ❓ Content search brings 0 results

Post by KoalaBear »

Thanks for your reply.

The issue is that the logfiles are not 'indexed' by content and therefore don't get any result, I think.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

Everything will still gather content, it will just be slow.

Do you see the content with the following search:

*.log addcolumn:a a:=$content:


Please check if Everything is reading the logs correctly.
KoalaBear
Posts: 5
Joined: Fri Nov 24, 2023 10:58 am

Re: ❓ Content search brings 0 results

Post by KoalaBear »

No, that's the whole issue I think. I thought it was because this content is not indexed. But according to your comment it should always work :)
image.png
image.png (34.94 KiB) Viewed 8200 times
Just to be sure, retested in 1.5.0.1396a.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

Are you indexing content? (Tools -> Options -> Content)
-If so, $content: will only return indexed content.
KoalaBear
Posts: 5
Joined: Fri Nov 24, 2023 10:58 am

Re: ❓ Content search brings 0 results

Post by KoalaBear »

Well, that's what I said in the first comment "except this content is not indexed", and again in the comment before "The issue is that the logfiles are not 'indexed' by content and therefore don't get any result, I think.", but then you said "Everything will still gather content, it will just be slow.", but now I hear that in the end that it doesn't 😅

So it's a back and forth of conclusions. It would be nice if there was a way for these very incidental searches to have like the "utf8content" fallback or so which I use to check if something is in a file at least once. Now I would like to know how many times.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: ❓ Content search brings 0 results

Post by void »

To clarify, you are indexing content under Tools -> Options -> Content.
But you are excluding log files and only indexing a small subset of files.

Unfortunately, $content: will only return indexed content when enabling content indexing under Tools -> Options -> Content.

I have put on my TODO list to add a GET_PROPERTY_FROM_DISK() formula function.
I'll make a note here once it is ready for testing.
Post Reply