Search multiple indexes of a plone site

I need to implement a central search of multiple plone sites on different servers / machines. If there is a way to choose which sites to search for will be a plus, but not the main problem. Several ways I've come across

-Open the ZCatalog indexes in the XML file and periodically use the crawler to get all the XML files so that they can be searched, but this method does not allow real-time searches.

-You can use the general directory, but it is not optimal and cannot be implemented on the sites I am working on due to some requirements.

- I read somewhere that they used solr, but I need help on how to use it.

But I need a way to use the existing ZCatalog and index and not create another index as I think this is due to the use of solr due to the additional overhead and additional index that needs to be maintained. But he will use it if there is no other solution possible. I'm new to searching, so please provide details as much as possible.

+3


source to share


2 answers


You should really look into the .solr collective:

https://pypi.python.org/pypi/collective.solr/4.1.0



Searching for multiple sites is a tricky use case and you will most likely need a solution that scales. In the end, it takes a lot less effort to go with Solr instead of coming up with your own solution. Solr is built for such requirements.

+6


source


Alternatively, you can also use collective.elasticindex , an extension for indexing Plone content in ElasticSearch , to do this.

According to its documentation:



This does not replace the Plone directory with ElasticSearch, nor interact with the Plone directory, it simply indexes the content inside ElasticSearch when modified or published.

In addition to this, it provides a simple search page called search.html that queries ElasticSearch using Javascript (so Plone is not involved in searches) and offers the same functionality as the default search page. The search portlet allows you to redirect people to this new search page.

This can be an advantage over the collective .solr.

0


source







All Articles