Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

There were problems encountered during the development of core spotlight.

In IOS17 and IOS18, core spotlight can only match app contents by searching for the displayName, but cannot hit the contents by using keywords. Moreover, when matching the app content by searching for the "displayName", it requires inputting four consecutive characters to achieve a match.These issues did not occur in iOS 16. What is the reason for this? Here is my code.

func addItemToIndex(_ item: QSpotlightItem) {
    let attributeSet = CSSearchableItemAttributeSet(contentType: .item)
    attributeSet.title = item.title
    attributeSet.displayName = item.title
    attributeSet.contentDescription = item.contentDescription
    attributeSet.keywords = item.keywords
    attributeSet.thumbnailData = item.thumbnailImage
    attributeSet.contactKeywords = item.keywords
    attributeSet.supportsNavigation = true
    let searchableItem = CSSearchableItem(uniqueIdentifier: item.id, domainIdentifier: "xxx", attributeSet: attributeSet)
    searchableItem.expirationDate = .distantFuture
    CSSearchableIndex.default().indexSearchableItems([searchableItem]) { error in
        if let error = error {
        } else {

        }
    }
}
Answered by DTS Engineer in 836301022

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Bug Reporting: How and Why? has tips on creating your bug report.

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Bug Reporting: How and Why? has tips on creating your bug report.

Do you get the same results with just the relevant code in a small test project? If so, please include your test project in the bug report requested by my colleague. A complete buildable project will give us additional context for your Spotlight items and help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

— Ed Ford,  DTS Engineer

FB17330079 is my bug report. The link to my test project is as follows. https://github.com/kritto1/corespotlight-bug-test/tree/main

I'm experiencing the same issue, and the user experience is very poor.
Are there any methods to allow users to search for app content by entering just ​​1 or 2 characters​​? We believe this is mandatory, necessary, and highly urgent @DTS Engineer

Thank you for filing a bug report. your bug has been routed to the correct team and it is under investigation. @fighting300, if this is an important issue for you then please consider filing a bug report as well. Duplicate bugs matter.

My bug report‘s id isFB17408320。The Chinese language is not like English. Requiring ​​4 Chinese characters​​ for a search hit is too restrictive. We strongly recommend reducing the minimum requirement to ​​2 chinese characters​​ to improve usability and search efficiency。Chinese characters need require more keystrokes for input。

@fighting300 thank you for filing a bug report. It has been assigned to the correct engineering team and it is under investigation at this time.

Our Company Expecting a quick result, but the current Chinese Spotlight experience is very poor and rarely delivers accurate outcomes. Each Chinese character requires at least 4 English keystrokes, and inputting 4 Chinese characters takes 14–16 keystrokes to trigger the correct input.

What is the current progress of this issue? We have been waiting for a long time for any new progress and conclusions. @DTS Engineer @DTS Engineer

There were problems encountered during the development of core spotlight.
 
 
Q