简体   繁体   English

如何突出显示ElasticSearch或Solr中的所有术语?

[英]How to highlight all terms in ElasticSearch or Solr?

I'm not sure if ElasticSearch or Solr can handle this, but it sounds a search engine related application. 我不确定ElasticSearch或Solr是否可以处理此问题,但这听起来与搜索引擎相关。 The requirement is: 要求是:

Giving a company name (100k) list and millions of documents, highlight all company names in search result. 提供公司名称(100k)列表和数百万个文档,在搜索结果中突出显示所有公司名称。

It's not like a typical search engine application, eg user inputs a keyword and search engine returns all hits and highlight it. 这与典型的搜索引擎应用程序不同,例如,用户输入关键字,搜索引擎返回所有匹配并突出显示。 I'm looking into APIs and trying to figure out how to do it. 我正在研究API,并试图找出方法。 Anybody has any suggestion? 有人有什么建议吗? Thanks! 谢谢!

我将GET参数与搜索关键字+ CSS后备广告一起使用以突出显示

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

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