<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSUserQueryContext/disableSemanticSearch",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight"
    ],
    "preciseIdentifier" : "c:objc(cs)CSUserQueryContext(py)disableSemanticSearch"
  },
  "title" : "disableSemanticSearch"
}
-->

# disableSemanticSearch

A Boolean value that indicates whether to exclude semantic-based
search results from the output.

```
var disableSemanticSearch: Bool { get set }
```

## Discussion

Semantic searching finds matches that are related to the original term,
but not necessarily a lexical match. For example, a search for the string
“Sun and Moon” might also return a result with a title like “Sol and Luna”.
The default value of this property is `true`, which enables the delivery
of semantic search results.

You might set this property to `false` when you want to perform only a
lexical match. For example, you might disable semantic search when
looking for a proper name.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)