---
title: SKSearchGroupCreate
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.3+]
path: coreservices/1448627-sksearchgroupcreate
---

# SKSearchGroupCreate

Creates a search group as an array of references to indexes.

## Declaration

```occ
SKSearchGroupRef SKSearchGroupCreate(CFArrayRef inArrayOfInIndexes);
```

## Parameters

- `inArrayOfInIndexes`: A CFArray object containing the indexes to put into the search group.

## Return Value

Return Value An SKSearchGroup opaque type.

## Discussion

Discussion Creates a search group as an array of references to indexes. You create a search group to search one or more indexes, and then typically use the resulting SKSearchGroupRef opaque type with SKSearchResultsCreateWithQuery or SKSearchResultsCreateWithDocuments. When your application no longer needs the search group, dispose of it by calling CFRelease.

## See Also

### Legacy Support for Synchronous Searching

- [SKSearchGroupCopyIndexes](coreservices/1448615-sksearchgroupcopyindexes.md)
- [SKSearchGroupGetTypeID](coreservices/1448637-sksearchgroupgettypeid.md)
- [SKSearchResultsCreateWithDocuments](coreservices/1448629-sksearchresultscreatewithdocumen.md)
- [SKSearchResultsGetInfoInRange](coreservices/1448618-sksearchresultsgetinfoinrange.md)
- [SKSearchResultsCopyMatchingTerms](coreservices/1448612-sksearchresultscopymatchingterms.md)
- [SKSearchResultsGetCount](coreservices/1448598-sksearchresultsgetcount.md)
- [SKSearchResultsGetTypeID](coreservices/1448603-sksearchresultsgettypeid.md)
- [SKSearchResultsCreateWithQuery](coreservices/1448610-sksearchresultscreatewithquery.md)
