searchkit

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package searchkit provides a fluent Go API over the macOS SearchKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Index

Constants

View Source
const (
	KSKSearchOptionDefault           = 0
	KSKSearchOptionFindSimilar       = 4
	KSKSearchOptionNoRelevanceScores = 1
	KSKSearchOptionSpaceMeansOR      = 2
)

Variables

This section is empty.

Functions

func KSKEndTermChars

func KSKEndTermChars() obj.Object

KSKEndTermChars returns the value of the constant kSKEndTermChars.

func KSKLanguageTypes

func KSKLanguageTypes() obj.Object

KSKLanguageTypes returns the value of the constant kSKLanguageTypes.

func KSKMaximumTerms

func KSKMaximumTerms() obj.Object

KSKMaximumTerms returns the value of the constant kSKMaximumTerms.

func KSKMinTermLength

func KSKMinTermLength() obj.Object

KSKMinTermLength returns the value of the constant kSKMinTermLength.

func KSKProximityIndexing

func KSKProximityIndexing() obj.Object

KSKProximityIndexing returns the value of the constant kSKProximityIndexing.

func KSKStartTermChars

func KSKStartTermChars() obj.Object

KSKStartTermChars returns the value of the constant kSKStartTermChars.

func KSKStopWords

func KSKStopWords() obj.Object

KSKStopWords returns the value of the constant kSKStopWords.

func KSKSubstitutions

func KSKSubstitutions() obj.Object

KSKSubstitutions returns the value of the constant kSKSubstitutions.

func KSKTermChars

func KSKTermChars() obj.Object

KSKTermChars returns the value of the constant kSKTermChars.

func SKDocumentCopyURL

func SKDocumentCopyURL(inDocument unsafe.Pointer) corefoundation.CFURLRef

SKDocumentCopyURL calls the SearchKit framework function SKDocumentCopyURL.

func SKDocumentCreate

func SKDocumentCreate(inScheme corefoundation.CFStringRef, inParent unsafe.Pointer, inName corefoundation.CFStringRef) unsafe.Pointer

SKDocumentCreate calls the SearchKit framework function SKDocumentCreate.

func SKDocumentCreateWithURL

func SKDocumentCreateWithURL(inURL corefoundation.CFURLRef) unsafe.Pointer

SKDocumentCreateWithURL calls the SearchKit framework function SKDocumentCreateWithURL.

func SKDocumentGetName

func SKDocumentGetName(inDocument unsafe.Pointer) corefoundation.CFStringRef

SKDocumentGetName calls the SearchKit framework function SKDocumentGetName.

func SKDocumentGetParent

func SKDocumentGetParent(inDocument unsafe.Pointer) unsafe.Pointer

SKDocumentGetParent calls the SearchKit framework function SKDocumentGetParent.

func SKDocumentGetSchemeName

func SKDocumentGetSchemeName(inDocument unsafe.Pointer) corefoundation.CFStringRef

SKDocumentGetSchemeName calls the SearchKit framework function SKDocumentGetSchemeName.

func SKDocumentGetTypeID

func SKDocumentGetTypeID() int

SKDocumentGetTypeID calls the SearchKit framework function SKDocumentGetTypeID.

func SKIndexAddDocument

func SKIndexAddDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inMIMETypeHint corefoundation.CFStringRef, inCanReplace uint8) uint8

SKIndexAddDocument calls the SearchKit framework function SKIndexAddDocument.

func SKIndexAddDocumentWithText

func SKIndexAddDocumentWithText(inIndex SKIndexRef, inDocument unsafe.Pointer, inDocumentText corefoundation.CFStringRef, inCanReplace uint8) uint8

SKIndexAddDocumentWithText calls the SearchKit framework function SKIndexAddDocumentWithText.

func SKIndexClose

func SKIndexClose(inIndex SKIndexRef)

SKIndexClose calls the SearchKit framework function SKIndexClose.

func SKIndexCompact

func SKIndexCompact(inIndex SKIndexRef) uint8

SKIndexCompact calls the SearchKit framework function SKIndexCompact.

func SKIndexCopyDocumentForDocumentID

func SKIndexCopyDocumentForDocumentID(inIndex SKIndexRef, inDocumentID int) unsafe.Pointer

SKIndexCopyDocumentForDocumentID calls the SearchKit framework function SKIndexCopyDocumentForDocumentID.

func SKIndexCopyDocumentIDArrayForTermID

func SKIndexCopyDocumentIDArrayForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFArrayRef

SKIndexCopyDocumentIDArrayForTermID calls the SearchKit framework function SKIndexCopyDocumentIDArrayForTermID.

func SKIndexCopyDocumentProperties

func SKIndexCopyDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer) corefoundation.CFDictionaryRef

SKIndexCopyDocumentProperties calls the SearchKit framework function SKIndexCopyDocumentProperties.

func SKIndexCopyDocumentRefsForDocumentIDs

func SKIndexCopyDocumentRefsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentRefsArray unsafe.Pointer) (inDocumentIDsArray int)

SKIndexCopyDocumentRefsForDocumentIDs calls the SearchKit framework function SKIndexCopyDocumentRefsForDocumentIDs.

func SKIndexCopyDocumentURLsForDocumentIDs

func SKIndexCopyDocumentURLsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentURLsArray unsafe.Pointer) (inDocumentIDsArray int)

SKIndexCopyDocumentURLsForDocumentIDs calls the SearchKit framework function SKIndexCopyDocumentURLsForDocumentIDs.

func SKIndexCopyInfoForDocumentIDs

func SKIndexCopyInfoForDocumentIDs(inIndex SKIndexRef, inCount int, outNamesArray unsafe.Pointer) (inDocumentIDsArray int, outParentIDsArray int)

SKIndexCopyInfoForDocumentIDs calls the SearchKit framework function SKIndexCopyInfoForDocumentIDs.

func SKIndexCopyTermIDArrayForDocumentID

func SKIndexCopyTermIDArrayForDocumentID(inIndex SKIndexRef, inDocumentID int) corefoundation.CFArrayRef

SKIndexCopyTermIDArrayForDocumentID calls the SearchKit framework function SKIndexCopyTermIDArrayForDocumentID.

func SKIndexCopyTermStringForTermID

func SKIndexCopyTermStringForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFStringRef

SKIndexCopyTermStringForTermID calls the SearchKit framework function SKIndexCopyTermStringForTermID.

func SKIndexDocumentIteratorCopyNext

func SKIndexDocumentIteratorCopyNext(inIterator SKIndexDocumentIteratorRef) unsafe.Pointer

SKIndexDocumentIteratorCopyNext calls the SearchKit framework function SKIndexDocumentIteratorCopyNext.

func SKIndexDocumentIteratorGetTypeID

func SKIndexDocumentIteratorGetTypeID() int

SKIndexDocumentIteratorGetTypeID calls the SearchKit framework function SKIndexDocumentIteratorGetTypeID.

func SKIndexFlush

func SKIndexFlush(inIndex SKIndexRef) uint8

SKIndexFlush calls the SearchKit framework function SKIndexFlush.

func SKIndexGetAnalysisProperties

func SKIndexGetAnalysisProperties(inIndex SKIndexRef) corefoundation.CFDictionaryRef

SKIndexGetAnalysisProperties calls the SearchKit framework function SKIndexGetAnalysisProperties.

func SKIndexGetDocumentCount

func SKIndexGetDocumentCount(inIndex SKIndexRef) int

SKIndexGetDocumentCount calls the SearchKit framework function SKIndexGetDocumentCount.

func SKIndexGetDocumentID

func SKIndexGetDocumentID(inIndex SKIndexRef, inDocument unsafe.Pointer) int

SKIndexGetDocumentID calls the SearchKit framework function SKIndexGetDocumentID.

func SKIndexGetDocumentTermCount

func SKIndexGetDocumentTermCount(inIndex SKIndexRef, inDocumentID int) int

SKIndexGetDocumentTermCount calls the SearchKit framework function SKIndexGetDocumentTermCount.

func SKIndexGetDocumentTermFrequency

func SKIndexGetDocumentTermFrequency(inIndex SKIndexRef, inDocumentID int, inTermID int) int

SKIndexGetDocumentTermFrequency calls the SearchKit framework function SKIndexGetDocumentTermFrequency.

func SKIndexGetMaximumBytesBeforeFlush

func SKIndexGetMaximumBytesBeforeFlush(inIndex SKIndexRef) int

SKIndexGetMaximumBytesBeforeFlush calls the SearchKit framework function SKIndexGetMaximumBytesBeforeFlush.

func SKIndexGetMaximumDocumentID

func SKIndexGetMaximumDocumentID(inIndex SKIndexRef) int

SKIndexGetMaximumDocumentID calls the SearchKit framework function SKIndexGetMaximumDocumentID.

func SKIndexGetMaximumTermID

func SKIndexGetMaximumTermID(inIndex SKIndexRef) int

SKIndexGetMaximumTermID calls the SearchKit framework function SKIndexGetMaximumTermID.

func SKIndexGetTermDocumentCount

func SKIndexGetTermDocumentCount(inIndex SKIndexRef, inTermID int) int

SKIndexGetTermDocumentCount calls the SearchKit framework function SKIndexGetTermDocumentCount.

func SKIndexGetTermIDForTermString

func SKIndexGetTermIDForTermString(inIndex SKIndexRef, inTermString corefoundation.CFStringRef) int

SKIndexGetTermIDForTermString calls the SearchKit framework function SKIndexGetTermIDForTermString.

func SKIndexGetTypeID

func SKIndexGetTypeID() int

SKIndexGetTypeID calls the SearchKit framework function SKIndexGetTypeID.

func SKIndexMoveDocument

func SKIndexMoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inNewParent unsafe.Pointer) uint8

SKIndexMoveDocument calls the SearchKit framework function SKIndexMoveDocument.

func SKIndexRemoveDocument

func SKIndexRemoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer) uint8

SKIndexRemoveDocument calls the SearchKit framework function SKIndexRemoveDocument.

func SKIndexRenameDocument

func SKIndexRenameDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inNewName corefoundation.CFStringRef) uint8

SKIndexRenameDocument calls the SearchKit framework function SKIndexRenameDocument.

func SKIndexSetDocumentProperties

func SKIndexSetDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer, inProperties corefoundation.CFDictionaryRef)

SKIndexSetDocumentProperties calls the SearchKit framework function SKIndexSetDocumentProperties.

func SKIndexSetMaximumBytesBeforeFlush

func SKIndexSetMaximumBytesBeforeFlush(inIndex SKIndexRef, inBytesForUpdate int)

SKIndexSetMaximumBytesBeforeFlush calls the SearchKit framework function SKIndexSetMaximumBytesBeforeFlush.

func SKLoadDefaultExtractorPlugIns

func SKLoadDefaultExtractorPlugIns()

SKLoadDefaultExtractorPlugIns calls the SearchKit framework function SKLoadDefaultExtractorPlugIns.

func SKSearchCancel

func SKSearchCancel(inSearch SKSearchRef)

SKSearchCancel calls the SearchKit framework function SKSearchCancel.

func SKSearchFindMatches

func SKSearchFindMatches(inSearch SKSearchRef, inMaximumCount int, maximumTime float64) (result uint8, outDocumentIDsArray int, outScoresArray float32, outFoundCount int)

SKSearchFindMatches calls the SearchKit framework function SKSearchFindMatches.

func SKSearchGetTypeID

func SKSearchGetTypeID() int

SKSearchGetTypeID calls the SearchKit framework function SKSearchGetTypeID.

func SKSearchGroupCopyIndexes

func SKSearchGroupCopyIndexes(inSearchGroup SKSearchGroupRef) corefoundation.CFArrayRef

SKSearchGroupCopyIndexes calls the SearchKit framework function SKSearchGroupCopyIndexes.

func SKSearchGroupGetTypeID

func SKSearchGroupGetTypeID() int

SKSearchGroupGetTypeID calls the SearchKit framework function SKSearchGroupGetTypeID.

func SKSearchResultsCopyMatchingTerms

func SKSearchResultsCopyMatchingTerms(inSearchResults SKSearchResultsRef, inItem int) corefoundation.CFArrayRef

SKSearchResultsCopyMatchingTerms calls the SearchKit framework function SKSearchResultsCopyMatchingTerms.

func SKSearchResultsGetCount

func SKSearchResultsGetCount(inSearchResults SKSearchResultsRef) int

SKSearchResultsGetCount calls the SearchKit framework function SKSearchResultsGetCount.

func SKSearchResultsGetInfoInRange

func SKSearchResultsGetInfoInRange(inSearchResults SKSearchResultsRef, inRange corefoundation.CFRange, outDocumentsArray unsafe.Pointer, outIndexesArray unsafe.Pointer) (result int, outScoresArray float32)

SKSearchResultsGetInfoInRange calls the SearchKit framework function SKSearchResultsGetInfoInRange.

func SKSearchResultsGetTypeID

func SKSearchResultsGetTypeID() int

SKSearchResultsGetTypeID calls the SearchKit framework function SKSearchResultsGetTypeID.

func SKSummaryCopyParagraphAtIndex

func SKSummaryCopyParagraphAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef

SKSummaryCopyParagraphAtIndex calls the SearchKit framework function SKSummaryCopyParagraphAtIndex.

func SKSummaryCopyParagraphSummaryString

func SKSummaryCopyParagraphSummaryString(summary SKSummaryRef, numParagraphs int) corefoundation.CFStringRef

SKSummaryCopyParagraphSummaryString calls the SearchKit framework function SKSummaryCopyParagraphSummaryString.

func SKSummaryCopySentenceAtIndex

func SKSummaryCopySentenceAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef

SKSummaryCopySentenceAtIndex calls the SearchKit framework function SKSummaryCopySentenceAtIndex.

func SKSummaryCopySentenceSummaryString

func SKSummaryCopySentenceSummaryString(summary SKSummaryRef, numSentences int) corefoundation.CFStringRef

SKSummaryCopySentenceSummaryString calls the SearchKit framework function SKSummaryCopySentenceSummaryString.

func SKSummaryGetParagraphCount

func SKSummaryGetParagraphCount(summary SKSummaryRef) int

SKSummaryGetParagraphCount calls the SearchKit framework function SKSummaryGetParagraphCount.

func SKSummaryGetParagraphSummaryInfo

func SKSummaryGetParagraphSummaryInfo(summary SKSummaryRef, numParagraphsInSummary int) (result int, outRankOrderOfParagraphs int, outParagraphIndexOfParagraphs int)

SKSummaryGetParagraphSummaryInfo calls the SearchKit framework function SKSummaryGetParagraphSummaryInfo.

func SKSummaryGetSentenceCount

func SKSummaryGetSentenceCount(summary SKSummaryRef) int

SKSummaryGetSentenceCount calls the SearchKit framework function SKSummaryGetSentenceCount.

func SKSummaryGetSentenceSummaryInfo

func SKSummaryGetSentenceSummaryInfo(summary SKSummaryRef, numSentencesInSummary int) (result int, outRankOrderOfSentences int, outSentenceIndexOfSentences int, outParagraphIndexOfSentences int)

SKSummaryGetSentenceSummaryInfo calls the SearchKit framework function SKSummaryGetSentenceSummaryInfo.

func SKSummaryGetTypeID

func SKSummaryGetTypeID() int

SKSummaryGetTypeID calls the SearchKit framework function SKSummaryGetTypeID.

Types

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type SKDocumentIndexState

type SKDocumentIndexState int32
const (
	KSKDocumentStateNotIndexed    SKDocumentIndexState = 0
	KSKDocumentStateIndexed       SKDocumentIndexState = 1
	KSKDocumentStateAddPending    SKDocumentIndexState = 2
	KSKDocumentStateDeletePending SKDocumentIndexState = 3
)

func SKIndexGetDocumentState

func SKIndexGetDocumentState(inIndex SKIndexRef, inDocument unsafe.Pointer) SKDocumentIndexState

SKIndexGetDocumentState calls the SearchKit framework function SKIndexGetDocumentState.

func (SKDocumentIndexState) String

func (e SKDocumentIndexState) String() string

String returns the SKDocumentIndexState constant's name, or its numeric form when the value is not a known constant.

type SKIndex

type SKIndex struct{}

type SKIndexDocumentIterator

type SKIndexDocumentIterator struct{}

type SKIndexDocumentIteratorRef added in v0.18.0

type SKIndexDocumentIteratorRef struct{ obj.Object }

SKIndexDocumentIteratorRef is a handle for the opaque SKIndexDocumentIteratorRef type.

func SKIndexDocumentIteratorCreate

func SKIndexDocumentIteratorCreate(inIndex SKIndexRef, inParentDocument unsafe.Pointer) SKIndexDocumentIteratorRef

SKIndexDocumentIteratorCreate calls the SearchKit framework function SKIndexDocumentIteratorCreate.

func (SKIndexDocumentIteratorRef) IsNil added in v0.18.0

func (h SKIndexDocumentIteratorRef) IsNil() bool

IsNil reports whether SKIndexDocumentIteratorRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type SKIndexRef added in v0.18.0

type SKIndexRef struct{ obj.Object }

SKIndexRef is a handle for the opaque SKIndexRef type.

func SKIndexCreateWithMutableData

func SKIndexCreateWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef, inIndexType SKIndexType, inAnalysisProperties corefoundation.CFDictionaryRef) SKIndexRef

SKIndexCreateWithMutableData calls the SearchKit framework function SKIndexCreateWithMutableData.

func SKIndexCreateWithURL

func SKIndexCreateWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, inIndexType SKIndexType, inAnalysisProperties corefoundation.CFDictionaryRef) SKIndexRef

SKIndexCreateWithURL calls the SearchKit framework function SKIndexCreateWithURL.

func SKIndexOpenWithData

func SKIndexOpenWithData(inData corefoundation.CFDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef

SKIndexOpenWithData calls the SearchKit framework function SKIndexOpenWithData.

func SKIndexOpenWithMutableData

func SKIndexOpenWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef

SKIndexOpenWithMutableData calls the SearchKit framework function SKIndexOpenWithMutableData.

func SKIndexOpenWithURL

func SKIndexOpenWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, inWriteAccess uint8) SKIndexRef

SKIndexOpenWithURL calls the SearchKit framework function SKIndexOpenWithURL.

func (SKIndexRef) IsNil added in v0.18.0

func (h SKIndexRef) IsNil() bool

IsNil reports whether SKIndexRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type SKIndexType

type SKIndexType int32
const (
	KSKIndexUnknown        SKIndexType = 0
	KSKIndexInverted       SKIndexType = 1
	KSKIndexVector         SKIndexType = 2
	KSKIndexInvertedVector SKIndexType = 3
)

func SKIndexGetIndexType

func SKIndexGetIndexType(inIndex SKIndexRef) SKIndexType

SKIndexGetIndexType calls the SearchKit framework function SKIndexGetIndexType.

func (SKIndexType) String

func (e SKIndexType) String() string

String returns the SKIndexType constant's name, or its numeric form when the value is not a known constant.

type SKSearch

type SKSearch struct{}

type SKSearchGroup

type SKSearchGroup struct{}

type SKSearchGroupRef added in v0.18.0

type SKSearchGroupRef struct{ obj.Object }

SKSearchGroupRef is a handle for the opaque SKSearchGroupRef type.

func SKSearchGroupCreate

func SKSearchGroupCreate(inArrayOfInIndexes corefoundation.CFArrayRef) SKSearchGroupRef

SKSearchGroupCreate calls the SearchKit framework function SKSearchGroupCreate.

func (SKSearchGroupRef) IsNil added in v0.18.0

func (h SKSearchGroupRef) IsNil() bool

IsNil reports whether SKSearchGroupRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type SKSearchRef added in v0.18.0

type SKSearchRef struct{ obj.Object }

SKSearchRef is a handle for the opaque SKSearchRef type.

func SKSearchCreate

func SKSearchCreate(inIndex SKIndexRef, inQuery corefoundation.CFStringRef, inSearchOptions int) SKSearchRef

SKSearchCreate calls the SearchKit framework function SKSearchCreate.

func (SKSearchRef) IsNil added in v0.18.0

func (h SKSearchRef) IsNil() bool

IsNil reports whether SKSearchRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type SKSearchResults

type SKSearchResults struct{}

type SKSearchResultsRef added in v0.18.0

type SKSearchResultsRef struct{ obj.Object }

SKSearchResultsRef is a handle for the opaque SKSearchResultsRef type.

func SKSearchResultsCreateWithDocuments

func SKSearchResultsCreateWithDocuments(inSearchGroup SKSearchGroupRef, inExampleDocuments corefoundation.CFArrayRef, inMaxFoundDocuments int, inContext unsafe.Pointer, inFilterCallBack unsafe.Pointer) SKSearchResultsRef

SKSearchResultsCreateWithDocuments calls the SearchKit framework function SKSearchResultsCreateWithDocuments.

func SKSearchResultsCreateWithQuery

func SKSearchResultsCreateWithQuery(inSearchGroup SKSearchGroupRef, inQuery corefoundation.CFStringRef, inSearchType SKSearchType, inMaxFoundDocuments int, inContext unsafe.Pointer, inFilterCallBack unsafe.Pointer) SKSearchResultsRef

SKSearchResultsCreateWithQuery calls the SearchKit framework function SKSearchResultsCreateWithQuery.

func (SKSearchResultsRef) IsNil added in v0.18.0

func (h SKSearchResultsRef) IsNil() bool

IsNil reports whether SKSearchResultsRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type SKSearchType

type SKSearchType int32
const (
	KSKSearchRanked         SKSearchType = 0
	KSKSearchBooleanRanked  SKSearchType = 1
	KSKSearchRequiredRanked SKSearchType = 2
	KSKSearchPrefixRanked   SKSearchType = 3
)

func (SKSearchType) String

func (e SKSearchType) String() string

String returns the SKSearchType constant's name, or its numeric form when the value is not a known constant.

type SKSummary

type SKSummary struct{}

type SKSummaryRef added in v0.18.0

type SKSummaryRef struct{ obj.Object }

SKSummaryRef is a handle for the opaque SKSummaryRef type.

func SKSummaryCreateWithString

func SKSummaryCreateWithString(inString corefoundation.CFStringRef) SKSummaryRef

SKSummaryCreateWithString calls the SearchKit framework function SKSummaryCreateWithString.

func (SKSummaryRef) IsNil added in v0.18.0

func (h SKSummaryRef) IsNil() bool

IsNil reports whether SKSummaryRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL