Returning private nodes on the search results (ezfind 2.0)

Author Message

Carlos Revillo

Tuesday 24 February 2009 7:46:27 am

Hi.

For my purposes i need that search results returns also nodes marked as privated or under sections who has no access allowed to anonymous users.

For those results i will only show a link to it, and then, ezpublish should shows the user the login form.

So, i'm using a query like the one presented at the documentation

{set $search = fetch( ezfind, search,
       hash( query, 'eZ Systems',
             limitation, hash( 'accessWord', 'yes' ) ) )
}

usign the query i need, i get an strange behaviour...Doing a {$search|attribute(show)} i get this

SearchResult 	array 	Array(0)
SearchCount 	integer 	2

So, it seems that some records have been found (searchcount = 2) but searchresult array is empty...

Is there something i'm doing wrong with my fetch? if i remove

limitation, hash('accessWord', 'yes')))

i don't get any results and SearchCount is also 0.

BTW. I'm usign eZ Publish 4.0.1 for this project.

Thank you.

Paul Borgermans

Tuesday 17 March 2009 5:11:03 am

In eZ Find 2.0.0, you can pass an empty array to disable access limitations

See also http://issues.ez.no/IssueView.php?Id=14253&activeItem=33

hth
Paul

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

Carlos Revillo

Wednesday 18 March 2009 2:59:18 am

Thank you Paul. I'll try asap.

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