简体   繁体   中英

Indexing and searching by the Solr, which was integrated in Liferay 6.2

I can't find some information about using solr in the Liferay portal. How to use solr integrated to the liferay? Solr documentation doesn't contain information about it. But in the Liferay reasources I found information about integration solr plugin only. How I can indexing and searching data from the portlet of liferay portal? Probably i don't understand some general principles... Pls, explain me it.

Liferay itself does not use SOLR, it provides fulltext search using Lucene directly. For developers and administrators it is well hidden under Liferay's own search mechanism (check the Indexer and BaseIndexer classess). The API allows you to do the following two basic tasks: Add search capability to your own portlet (check Liferay's Knowledge Base portlet as well) and Extend or Modify search capabilities of Liferay's objects .

Returning to SOLR, if you want to integrate it with Liferay, you have to do it on your own. But even then you will use only through Liferay's API, not directly. SOLR is very usefull when doing clustering. If you have a bigger installation, Lucene index replication (or other clustering strategies) may not be efficient enough. There are lot of articles about how to integrate Liferay with Lucene, check this for example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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