Forums / Extensions / eZ Find / index protected content

index protected content

Author Message

Pierre Tissot

Tuesday 05 January 2010 7:03:23 am

Hello,

It's possible to index external (ezpublish) sites that have protected content? It seems strange, but in my case it's not, I want that some protected content is indexed and apear in the result search to invite poeple to buy the access to this protected information.

Is this possible via ezfind/lucene?

PiR

Paul Borgermans

Tuesday 05 January 2010 2:54:10 pm

Hi

The good news: yes, the bad news: it is not so obvious with eZ Find 2.1

The main point is that you need to be able to reach the external Solr instance from your other sites. If on different networks, you may need to set up some firewalled config and possibly a ssl tunnel or so.

The scenario to be followed is:

1) Index your "external" site with its own eZ Find/Solr instance

2) Use the rawsolrrequest template fetch function to access this instance directly from your other ez publish site, feeding it the same keywords for searching. You need to look up how to Solr request parameters are expected

I plan to add functionality in the coming weeks to search across "shards", in other words you will be able to simultaneously search across different indexes from eZ Find 2.2.

If you want to display images too, you will need some more work in order to assemble correct URL's and so, but feasible in any case.

Can you detail a bit more on your setup and possible constraints?

Cheers

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans