Skip to content

SearXNG 工具节点#

¥SearXNG Tool node

SearXNG 工具节点允许你使用 SearXNG 将搜索功能集成到工作流中。SearXNG 会聚合来自多个搜索引擎的结果,而不会跟踪你的活动。

¥The SearXNG Tool node allows you to integrate search capabilities into your workflows using SearXNG. SearXNG aggregates results from multiple search engines without tracking you.

本页提供 SearchXNG 工具节点的选项以及更多资源的链接。

¥On this page, you'll find the node options for the SearXNG Tool node, and links to more resources.

Credentials

你可以在 此处 中找到此节点的身份验证信息。

¥You can find authentication information for this node here.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点选项#

¥Node Options

  • 结果数量:要检索的结果数。默认值为 10。

¥Number of Results: The number of results to retrieve. The default is 10.

  • 页码:要检索的搜索结果页码。默认值为 1。

¥Page Number: The page number of the search results to retrieve. The default is 1.

  • 语言:用于按语言筛选搜索结果的双字母 语言代码。例如:en 用于英语,fr 用于法语。默认值为 en

¥Language: A two-letter language code to filter search results by language. For example: en for English, fr for French. The default is en.

  • 安全搜索:启用或禁用搜索结果中的露骨内容过滤。权限可设置为“无”、“中等”或“严格”。默认值为 None。

¥Safe Search: Enables or disables filtering explicit content in the search results. Can be None, Moderate, or Strict. The default is None.

运行 SearXNG 实例#

¥Running a SearXNG instance

此节点要求 SearXNG 服务与 n8n 实例运行在同一网络上。请确保你的 n8n 实例可以访问 SearXNG 服务。

¥This node requires running the SearXNG service on the same network as your n8n instance. Ensure your n8n instance has network access to the SearXNG service.

此节点需要 JSON 格式的结果,而默认的 SearXNG 配置中未启用此功能。要启用 JSON 输出,请将 json 添加到 SearXNG 实例的 settings.yml 文件的 search.formats 部分:

¥This node requires results in JSON format, which isn't enabled in the default SearXNG configuration. To enable JSON output, add json to the search.formats section of your SearXNG instance's settings.yml file:

1
2
3
4
5
search:
  # options available for formats: [html, csv, json, rss]
  formats:
    - html
    - json

如果缺少 formats 部分,请添加它。settings.yml 文件的具体位置取决于你安装 SearXNG 的方式。你可以通过访问 SearXNG 配置文档 找到更多信息。

¥If the formats section isn't there, add it. The exact location of the settings.yml file depends on how you installed SearXNG. You can find more by visiting the SearXNG configuration documentation.

搜索结果的质量和可用性取决于你使用的 SearXNG 实例的配置和运行状况。

¥The quality and availability of search results depend on the configuration and health of the SearXNG instance you use.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

有关服务的更多信息,请参阅 SearXNG 文档。你还可以查看 LangChain 的 SearXNG 集成文档

¥Refer to SearXNG's documentation for more information about the service. You can also view LangChain's documentation on their SearXNG integration.

View n8n's Advanced AI documentation.