fix: 修正搜索条目无法完全显示的问题
- 为查询/搜索添加更大的limit
This commit is contained in:
@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
||||
if (!q) return [];
|
||||
|
||||
const meili = getMeiliService();
|
||||
const sections = await meili.search(q, { limit: 12 }, locale);
|
||||
const sections = await meili.search(q, { limit: 500 }, locale);
|
||||
|
||||
// 空Section过滤
|
||||
const filteredSections = sections.filter(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetDocumentList($locale: String!) {
|
||||
product_documents(filter: { status: { _eq: "published" } }) {
|
||||
product_documents(filter: { status: { _eq: "published" } }, limit: 500) {
|
||||
id
|
||||
file {
|
||||
id
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetProductList($locale: String!) {
|
||||
products(filter: { status: { _eq: "in-production" } }) {
|
||||
products(filter: { status: { _eq: "in-production" } }, limit: 200) {
|
||||
id
|
||||
status
|
||||
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetQuestionList($locale: String!) {
|
||||
questions(filter: { status: { _eq: "published" } }) {
|
||||
questions(filter: { status: { _eq: "published" } }, limit: 500) {
|
||||
id
|
||||
type {
|
||||
id
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
query GetSolutionList($locale: String!) {
|
||||
solutions(filter: { status: { _eq: "published" } }) {
|
||||
solutions(filter: { status: { _eq: "published" } }, limit: 200) {
|
||||
id
|
||||
cover {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user