How to search content inside specific file format

General discussion related to "Everything".
Post Reply
demokedes
Posts: 3
Joined: Mon Jan 09, 2023 8:52 pm

How to search content inside specific file format

Post by demokedes »

Dear all,
I understand searching through the content is extremely slow, but is there an option to search through the content of specific file type. For example I would like to search inside the content only inside the *.*sql files. Is that possible?
Thank you,
Regards
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: How to search content inside specific file format

Post by NotNull »

Code: Select all

ext:sql  content:"your text"
will only search in .sql files. Adding a path and/or date-range might limit the number of .sql files even further.

Example:

Code: Select all

c:\development   dm:2022..2023   ext:sql  content:"your text"
Search Syntax
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: How to search content inside specific file format

Post by tuska »

Search query

Code: Select all

ext:sql ansicontent:"my text"
- OR -
ext:sql utf8content:"my text"
Reference: Info by NotNull - Filter or Bookmark ...

Code: Select all

Search: content:mytext: | ansicontent:mytext: | utf8content:mytext: | utf16content:mytext: | utf16becontent:mytext:

Code: Select all

Macro:  mycontent<mytext>
Search query (using a Filter or Bookmark):

Code: Select all

ext:sql mycontent:"my text"
demokedes
Posts: 3
Joined: Mon Jan 09, 2023 8:52 pm

Re: How to search content inside specific file format

Post by demokedes »

Thank you very much. This is exactly what I needed. Regards
Post Reply