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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:32:36
Script start
Timing: Jan 18 2025 10:32:36
Module start 'layout'
Timing: Jan 18 2025 10:32:36
Module start 'content'
Timing: Jan 18 2025 10:32:36
Module end 'content'
Timing: Jan 18 2025 10:32:36
Script end

Main resources:

Total runtime0.7535 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.0703152.6250
Module start 'layout' 0.00730.0044 741.695339.4453
Module start 'content' 0.01170.7402 781.1406524.9375
Module end 'content' 0.75190.0016 1,306.07818.1641
Script end 0.7534  1,314.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4558160.0002
Check MTime0.00150.1949160.0001
Mysql Total
Database connection0.00140.185410.0014
Mysqli_queries0.698892.7490560.0125
Looping result0.00060.0739540.0000
Template Total0.708694.020.3543
Template load0.00240.318820.0012
Template processing0.706193.717220.3531
Template load and register function0.00020.020210.0002
states
state_id_array0.00130.173510.0013
state_identifier_array0.00120.158220.0006
Override
Cache load0.00180.2327200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.100520.0004
Fetch class attribute name0.00190.256130.0006
XML
Image XML parsing0.00060.080820.0003
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00150.1949170.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs