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

# enableRankedResults

A Boolean value that indicates whether the query sorts results
by their relevance.

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

## Discussion

The default value of this property is `true`. Setting the property
to `false` causes Spotlight to return results as it finds them
instead of ordering them by their relevance or saliency to the search term.

---

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)