Introduction
Describes Search Kit architecture and workflow, and how to add search capabilities to Carbon and Cocoa applications.
Who Should Read This Document
This guide provides the background you’ll need to use Search Kit to add fast content searching to your application. If your application focuses on metadata rather than document content, you may want to consider using Spotlight instead.
Use the Search Kit API when you want your application to have full control over indexing and searching. Also use Search Kit when your “documents” are not necessarily files on disk but web pages, database records, and so on.
Use the simpler Spotlight API either when your focus is local file metadata or when your application does not need precise control over indexing or of the document hierarchy, or both.
Organization of This Document
Search Kit Programming Guide contains the following chapters:
Search Basics , an optional introductory chapter, gets you up to speed on some of the basics of information retrieval as a foundation for the rest of the book. If you are familiar with terms such as corpus, text extraction, inverted index, query, Boolean search, and relevance ranking, you can skip this chapter.
Search Kit Concepts describes the elements of Search Kit’s approach to searching. Read this chapter to learn about Search Kit’s notion of documents, terms, indexes, queries, searches, and search results. This chapter also provides an overview of the workflow behind a user’s search, from text extraction to display of ranked results.
Search Kit Tasks provides detailed instructions on how to accomplish each of the steps involved in a practical usage scenario with Search Kit. It also provides sample code excerpts illustrating each step.
A glossary at the end lists terms that you need in order to understand information retrieval in general and Search Kit in particular.
See Also
You may find this additional information from Apple helpful:
Search Kit Reference describes the entire Search Kit API in detail.
Memory Management Programming Guide for Core Foundation provides an introduction to memory management in Core Foundation. Search Kit uses Apple's Core Foundation style for memory management.
Debugging Programming Topics for Core Foundation provides an introduction to debugging and error handling in Core Foundation. Search Kit uses Apple's Core Foundation style for error handling.
Working With Spotlight provides an introduction to using Apple's Spotlight technology.
Next
Copyright © 2004, 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-12-06