> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# searchFiveStars

> 搜索文件中五角星所在的页面，返回页码列表。

```ts wrap theme={null}
static searchFiveStars(filePath: string): Promise<APIResponse<number[]>>;
```

**参数**

| 参数         | 类型       | 说明        |
| ---------- | -------- | --------- |
| `filePath` | `string` | 笔记/文档文件路径 |

**返回**

* [`APIResponse<number[]>`](/zh/api-reference/supernote-plugin/types/api-response)：
  `result` 为五角星所在页码数组

## 示例

```ts wrap theme={null}
import { PluginFileAPI } from 'sn-plugin-lib';

/**
 * 搜索文件中五角星所在页的示例。
 */
export async function exampleSearchFiveStars() {
  const filePath = '/storage/emulated/0/Note/demo.note';
  const res = await PluginFileAPI.searchFiveStars(filePath);
  if (!res.success) {
    throw new Error(res.error?.message ?? 'searchFiveStars 调用失败');
  }
  return res.result;
}
```
