em.textContent =
                        "无法连接到搜索服务，请检查配置";
                    return;
                }

                const query = searchInput.value;
                let filters = "";

                if (selectedTags.size > 0) {
                    const tagFilters = Array.from(selectedTags).map(
                        (tag) => `tags = "${tag}"`
                    );
                    filters = tagFilters.join(" AND ");
                }

                try {
      