searchkit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package searchkit provides purego-based Go bindings for the macOS SearchKit framework.

Apple documentation: https://developer.apple.com/documentation/searchkit

Index

Constants

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

Variables

This section is empty.

Functions

func KSKEndTermChars

func KSKEndTermChars() uintptr

func KSKLanguageTypes deprecated

func KSKLanguageTypes() uintptr

Deprecated: No longer supported

func KSKMaximumTerms

func KSKMaximumTerms() uintptr

func KSKMinTermLength

func KSKMinTermLength() uintptr

func KSKProximityIndexing

func KSKProximityIndexing() uintptr

func KSKStartTermChars

func KSKStartTermChars() uintptr

func KSKStopWords

func KSKStopWords() uintptr

func KSKSubstitutions

func KSKSubstitutions() uintptr

func KSKTermChars

func KSKTermChars() uintptr

func SKDocumentCopyURL

func SKDocumentCopyURL(inDocument unsafe.Pointer) unsafe.Pointer

func SKDocumentCreate

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

func SKDocumentCreateWithURL

func SKDocumentCreateWithURL(inURL unsafe.Pointer) unsafe.Pointer

func SKDocumentGetName

func SKDocumentGetName(inDocument unsafe.Pointer) unsafe.Pointer

func SKDocumentGetParent

func SKDocumentGetParent(inDocument unsafe.Pointer) unsafe.Pointer

func SKDocumentGetSchemeName

func SKDocumentGetSchemeName(inDocument unsafe.Pointer) unsafe.Pointer

func SKDocumentGetTypeID

func SKDocumentGetTypeID() uint

func SKIndexAddDocument

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

func SKIndexAddDocumentWithText

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

func SKIndexClose

func SKIndexClose(inIndex unsafe.Pointer)

func SKIndexCompact

func SKIndexCompact(inIndex unsafe.Pointer) uint8

func SKIndexCopyDocumentForDocumentID

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

func SKIndexCopyDocumentIDArrayForTermID

func SKIndexCopyDocumentIDArrayForTermID(inIndex unsafe.Pointer, inTermID int) unsafe.Pointer

func SKIndexCopyDocumentProperties

func SKIndexCopyDocumentProperties(inIndex unsafe.Pointer, inDocument unsafe.Pointer) unsafe.Pointer

func SKIndexCopyDocumentRefsForDocumentIDs

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

func SKIndexCopyDocumentURLsForDocumentIDs

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

func SKIndexCopyInfoForDocumentIDs

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

func SKIndexCopyTermIDArrayForDocumentID

func SKIndexCopyTermIDArrayForDocumentID(inIndex unsafe.Pointer, inDocumentID int) unsafe.Pointer

func SKIndexCopyTermStringForTermID

func SKIndexCopyTermStringForTermID(inIndex unsafe.Pointer, inTermID int) unsafe.Pointer

func SKIndexCreateWithMutableData

func SKIndexCreateWithMutableData(inData unsafe.Pointer, inIndexName unsafe.Pointer, inIndexType SKIndexType, inAnalysisProperties unsafe.Pointer) unsafe.Pointer

func SKIndexCreateWithURL

func SKIndexCreateWithURL(inURL unsafe.Pointer, inIndexName unsafe.Pointer, inIndexType SKIndexType, inAnalysisProperties unsafe.Pointer) unsafe.Pointer

func SKIndexDocumentIteratorCopyNext

func SKIndexDocumentIteratorCopyNext(inIterator unsafe.Pointer) unsafe.Pointer

func SKIndexDocumentIteratorCreate

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

func SKIndexDocumentIteratorGetTypeID

func SKIndexDocumentIteratorGetTypeID() uint

func SKIndexFlush

func SKIndexFlush(inIndex unsafe.Pointer) uint8

func SKIndexGetAnalysisProperties

func SKIndexGetAnalysisProperties(inIndex unsafe.Pointer) unsafe.Pointer

func SKIndexGetDocumentCount

func SKIndexGetDocumentCount(inIndex unsafe.Pointer) int

func SKIndexGetDocumentID

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

func SKIndexGetDocumentTermCount

func SKIndexGetDocumentTermCount(inIndex unsafe.Pointer, inDocumentID int) int

func SKIndexGetDocumentTermFrequency

func SKIndexGetDocumentTermFrequency(inIndex unsafe.Pointer, inDocumentID int, inTermID int) int

func SKIndexGetMaximumBytesBeforeFlush

func SKIndexGetMaximumBytesBeforeFlush(inIndex unsafe.Pointer) int

func SKIndexGetMaximumDocumentID

func SKIndexGetMaximumDocumentID(inIndex unsafe.Pointer) int

func SKIndexGetMaximumTermID

func SKIndexGetMaximumTermID(inIndex unsafe.Pointer) int

func SKIndexGetTermDocumentCount

func SKIndexGetTermDocumentCount(inIndex unsafe.Pointer, inTermID int) int

func SKIndexGetTermIDForTermString

func SKIndexGetTermIDForTermString(inIndex unsafe.Pointer, inTermString unsafe.Pointer) int

func SKIndexGetTypeID

func SKIndexGetTypeID() uint

func SKIndexMoveDocument

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

func SKIndexOpenWithData

func SKIndexOpenWithData(inData unsafe.Pointer, inIndexName unsafe.Pointer) unsafe.Pointer

func SKIndexOpenWithMutableData

func SKIndexOpenWithMutableData(inData unsafe.Pointer, inIndexName unsafe.Pointer) unsafe.Pointer

func SKIndexOpenWithURL

func SKIndexOpenWithURL(inURL unsafe.Pointer, inIndexName unsafe.Pointer, inWriteAccess uint8) unsafe.Pointer

func SKIndexRemoveDocument

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

func SKIndexRenameDocument

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

func SKIndexSetDocumentProperties

func SKIndexSetDocumentProperties(inIndex unsafe.Pointer, inDocument unsafe.Pointer, inProperties unsafe.Pointer)

func SKIndexSetMaximumBytesBeforeFlush

func SKIndexSetMaximumBytesBeforeFlush(inIndex unsafe.Pointer, inBytesForUpdate int)

func SKLoadDefaultExtractorPlugIns

func SKLoadDefaultExtractorPlugIns()

func SKSearchCancel

func SKSearchCancel(inSearch unsafe.Pointer)

func SKSearchCreate

func SKSearchCreate(inIndex unsafe.Pointer, inQuery unsafe.Pointer, inSearchOptions uint) unsafe.Pointer

func SKSearchFindMatches

func SKSearchFindMatches(inSearch unsafe.Pointer, inMaximumCount int, outDocumentIDsArray *int, outScoresArray *float32, maximumTime float64, outFoundCount *int) uint8

func SKSearchGetTypeID

func SKSearchGetTypeID() uint

func SKSearchGroupCopyIndexes deprecated

func SKSearchGroupCopyIndexes(inSearchGroup unsafe.Pointer) unsafe.Pointer

Deprecated: No longer supported

func SKSearchGroupCreate deprecated

func SKSearchGroupCreate(inArrayOfInIndexes unsafe.Pointer) unsafe.Pointer

Deprecated: No longer supported

func SKSearchGroupGetTypeID deprecated

func SKSearchGroupGetTypeID() uint

Deprecated: No longer supported

func SKSearchResultsCopyMatchingTerms deprecated

func SKSearchResultsCopyMatchingTerms(inSearchResults unsafe.Pointer, inItem int) unsafe.Pointer

Deprecated: No longer supported

func SKSearchResultsCreateWithDocuments deprecated

func SKSearchResultsCreateWithDocuments(inSearchGroup unsafe.Pointer, inExampleDocuments unsafe.Pointer, inMaxFoundDocuments int, inContext unsafe.Pointer, inFilterCallBack unsafe.Pointer) unsafe.Pointer

Deprecated: No longer supported

func SKSearchResultsCreateWithQuery deprecated

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

Deprecated: No longer supported

func SKSearchResultsGetCount deprecated

func SKSearchResultsGetCount(inSearchResults unsafe.Pointer) int

Deprecated: No longer supported

func SKSearchResultsGetInfoInRange deprecated

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

Deprecated: No longer supported

func SKSearchResultsGetTypeID deprecated

func SKSearchResultsGetTypeID() uint

Deprecated: No longer supported

func SKSummaryCopyParagraphAtIndex

func SKSummaryCopyParagraphAtIndex(summary unsafe.Pointer, i int) unsafe.Pointer

func SKSummaryCopyParagraphSummaryString

func SKSummaryCopyParagraphSummaryString(summary unsafe.Pointer, numParagraphs int) unsafe.Pointer

func SKSummaryCopySentenceAtIndex

func SKSummaryCopySentenceAtIndex(summary unsafe.Pointer, i int) unsafe.Pointer

func SKSummaryCopySentenceSummaryString

func SKSummaryCopySentenceSummaryString(summary unsafe.Pointer, numSentences int) unsafe.Pointer

func SKSummaryCreateWithString

func SKSummaryCreateWithString(inString unsafe.Pointer) unsafe.Pointer

func SKSummaryGetParagraphCount

func SKSummaryGetParagraphCount(summary unsafe.Pointer) int

func SKSummaryGetParagraphSummaryInfo

func SKSummaryGetParagraphSummaryInfo(summary unsafe.Pointer, numParagraphsInSummary int, outRankOrderOfParagraphs *int, outParagraphIndexOfParagraphs *int) int

func SKSummaryGetSentenceCount

func SKSummaryGetSentenceCount(summary unsafe.Pointer) int

func SKSummaryGetSentenceSummaryInfo

func SKSummaryGetSentenceSummaryInfo(summary unsafe.Pointer, numSentencesInSummary int, outRankOrderOfSentences *int, outSentenceIndexOfSentences *int, outParagraphIndexOfSentences *int) int

func SKSummaryGetTypeID

func SKSummaryGetTypeID() uint

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

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

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type SKDocumentIndexState

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

func SKIndexGetDocumentState

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

func (SKDocumentIndexState) String

func (e SKDocumentIndexState) String() string

type SKIndex

type SKIndex struct{}

C struct: __SKIndex SKIndex is an opaque type.

type SKIndexDocumentIterator

type SKIndexDocumentIterator struct{}

C struct: __SKIndexDocumentIterator SKIndexDocumentIterator is an opaque type.

type SKIndexType

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

func SKIndexGetIndexType

func SKIndexGetIndexType(inIndex unsafe.Pointer) SKIndexType

func (SKIndexType) String

func (e SKIndexType) String() string

type SKSearch

type SKSearch struct{}

C struct: __SKSearch SKSearch is an opaque type.

type SKSearchGroup

type SKSearchGroup struct{}

C struct: __SKSearchGroup SKSearchGroup is an opaque type.

type SKSearchResults

type SKSearchResults struct{}

C struct: __SKSearchResults SKSearchResults is an opaque type.

type SKSearchType

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

func (SKSearchType) String

func (e SKSearchType) String() string

type SKSummary

type SKSummary struct{}

C struct: __SKSummary SKSummary is an opaque type.

Jump to

Keyboard shortcuts

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