简体   繁体   English

我想知道 wso2 api manager 怎么集成 solr

[英]I want to know how wso2 api manager integrates solr

I want to know how wso2 api manager integrates solr;我想知道wso2 api manager如何集成solr; why the search logic relies on solr instead of the database, and sometimes the records obtained by getallApis are not consistent with the number of records in the database table AM_API.为什么搜索逻辑依赖solr而不是数据库,有时getallApis获取的记录与数据库表AM_API中的记录数不一致。

As the documentation states WSO2 API Manager has Apache Solr based indexing for API documentation content.正如文档所述 WSO2 API Manager 具有Apache Solr的索引,用于 API 文档内容。 It provides both the API Publisher and Developer Portal a full-text search facility to search through the API documentation, and find the documents and related APIs.它为 API 发布者和开发人员门户提供全文搜索工具,用于搜索 API 文档,并查找文档和相关 API。

I would recommend you to check out an excellent technical answer of @jpountz .我建议您查看@jpountz的出色技术回答 Event though, the comparison made between postgresql vs lucene (underlying library is used by solr), it will give you some insight on why it's been chosen search engine (Lucene in the case wso2) over databases.不过,通过比较postgresql 与 lucene (底层库由 solr 使用),它会让您了解为什么选择搜索引擎(在 wso2 案例中为 Lucene)而不是数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM