Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8709995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:30:37+00:00 2026-06-13T04:30:37+00:00

I am performing spotlight like search using NSMetadataQuery, the problem i am facing is

  • 0

I am performing spotlight like search using NSMetadataQuery, the problem i am facing is that i am not able to restrict NSMetadataQuery from searching the particular hidden folder like /Users/username/Library (as library is hidden folder).

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:30:39+00:00Added an answer on June 13, 2026 at 4:30 am

    The issue is that the index created by Spotlight is not designed to restrict by paths. The index is optimized to quickly find the terms, and then you can get the corresponding URL for the result (or other metadata). The index is not optimized to search based on the path.

    The search index (built using SearchKit) is anyway very much optimized, and results are returned very fast even with large number of files. One you get the results, you have to filter these results yourself.

    Note that most files in ~/Library won’t be included in the index, like caches, plist files, plugins, etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in performing a query for all of the albums from a particular
I am performing a query that selects two times from the exact same table
After performing EXPLAIN on a query: explain select name from t1 where name like
When performing an insert lets say from C# into a SQL Server table (using
I am performing a search in an XML file, using the following code: $result
When performing a query like: select count(*) from myTextTable where tsv @@ plainto_tsquery('english', 'TERM');
When performing many inserts into a database I would usually have code like this:
Occasionally when performing a rebase using the MercurialEclipse plugin my repository gets thrown into
Im talking about performing a deep recursion for around 5+ mins, something that you
I'm performing a simulation of a simple queue using SimPy . One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.