使用trieve时编译错误 #1179
Replies: 10 comments 4 replies
-
Cannot help with that, it is a community adapter. You can use the default one powered by Orama, or Algolia with official support |
Beta Was this translation helpful? Give feedback.
-
好的,我刚才尝试切换到了
algolia(因为默认的orama不支持中文搜索),英文搜索运行良好。但是我的docs下面是有简体中文和繁体中文的mdx,我发现并没有被同步到algolia的索引中,我需要做什么调整么?这是代码
[image: image.png]
Fuma Nama ***@***.***> 于2024年12月20日周五 16:06写道:
… Cannot help with that, it is a community adapter
—
Reply to this email directly, view it on GitHub
<#1179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQTPNM55HTZHP7NX5HMG3MT2GPFYJAVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGU4DENI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
解决了:
[image: image.png]
Focus Apps ***@***.***> 于2024年12月20日周五 16:13写道:
… 好的,我刚才尝试切换到了
algolia(因为默认的orama不支持中文搜索),英文搜索运行良好。但是我的docs下面是有简体中文和繁体中文的mdx,我发现并没有被同步到algolia的索引中,我需要做什么调整么?这是代码
[image: image.png]
Fuma Nama ***@***.***> 于2024年12月20日周五 16:06写道:
> Cannot help with that, it is a community adapter
>
> —
> Reply to this email directly, view it on GitHub
> <#1179 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQTPNM55HTZHP7NX5HMG3MT2GPFYJAVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGU4DENI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
我有过尝试,但是遇到了问题:[image: image.png]
[image: image.png]
Fuma Nama ***@***.***> 于2024年12月20日周五 16:45写道:
… Nice to hear that, btw for Chinese, we do have support on Orama.
See
https://fumadocs.vercel.app/docs/headless/search/orama#special-languages,
note that we use Orama v2 as v3 has some issues with external tokenizers
—
Reply to this email directly, view it on GitHub
<#1179 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQTPNM2WAZINXARY36YMZLD2GPKMNAVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGYZDKMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
补充一点是,我是在你们的i18n demo上修改的,包含两个文件,文档只涉及了route.ts,不知道和这有关系么?[image: image.png]
[image: image.png]
Focus Apps ***@***.***> 于2024年12月20日周五 17:11写道:
… 我有过尝试,但是遇到了问题:[image: image.png]
[image: image.png]
Fuma Nama ***@***.***> 于2024年12月20日周五 16:45写道:
> Nice to hear that, btw for Chinese, we do have support on Orama.
>
> See
> https://fumadocs.vercel.app/docs/headless/search/orama#special-languages,
> note that we use Orama v2 as v3 has some issues with external tokenizers
>
> —
> Reply to this email directly, view it on GitHub
> <#1179 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQTPNM2WAZINXARY36YMZLD2GPKMNAVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGYZDKMQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
The
|
Beta Was this translation helpful? Give feedback.
-
我不知道是不是响应慢的原因,我等待了可能有几分钟了,期间网页无法响应任何事件了。但是我只要加上了zh-CN,即使我搜索英文也是一样无响应。不过如果你确定是这个原因,那可能只能换在线方案了。文档估计30多页的样子
Fuma Nama ***@***.***> 于 2024年12月20日周五 18:48写道:
… The cn is the locale code you're using, it should be zh-CN in your case.
And assuming it's Orama v2, it takes some time to compile/load tokenizers,
but usually works. (Otherwise, you'll need 3rd party solutions like
Algolia, running large tokenizers on local can be slow)
route-full.ts is only for code examples, it won't affect anything.
—
Reply to this email directly, view it on GitHub
<#1179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQTPNM6QCDAX2US4HTC2CI32GPYY5AVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSG42TCMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
我没有修改 orama 版本,所以它应该是v2版本
Focus Apps ***@***.***> 于 2024年12月20日周五 19:24写道:
…
我不知道是不是响应慢的原因,我等待了可能有几分钟了,期间网页无法响应任何事件了。但是我只要加上了zh-CN,即使我搜索英文也是一样无响应。不过如果你确定是这个原因,那可能只能换在线方案了。文档估计30多页的样子
Fuma Nama ***@***.***> 于 2024年12月20日周五 18:48写道:
> The cn is the locale code you're using, it should be zh-CN in your case.
> And assuming it's Orama v2, it takes some time to compile/load tokenizers,
> but usually works. (Otherwise, you'll need 3rd party solutions like
> Algolia, running large tokenizers on local can be slow)
>
> route-full.ts is only for code examples, it won't affect anything.
>
> —
> Reply to this email directly, view it on GitHub
> <#1179 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQTPNM6QCDAX2US4HTC2CI32GPYY5AVCNFSM6AAAAABT6OV2VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSG42TCMA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
都是最新版本:
"fumadocs-core": "14.6.2",
"fumadocs-mdx": "11.1.2",
"fumadocs-ui": "14.6.2",
"memoize-one": "^5.1.0",
"next": "15.0.4",
"react": "19.0.0",
"react-dom": "19.0.0",
"supports-color": "^10.0.0",
"trieve-fumadocs-adapter": "^1.2.4",
⨯ ./node_modules/trieve-fumadocs-adapter/dist/components/dialog/search-trieve.mjs
Attempted import error: 'TagsList' is not exported from 'fumadocs-ui/components/dialog/search' (imported as 'TagsList').
查看了 packages/ui/src/components/dialog/search.tsx 源代码确实没有导出 TagsList,所以是需要更新trieve-fumadocs-adapter的代码么?
Beta Was this translation helpful? Give feedback.
All reactions