search by subtree

Author Message

Clément Matéo

Wednesday 15 September 2010 2:49:19 am

Hi,

I'm trying to use search function on content part with that :

fetch(ezfind, search, hash(query, $query, subtree_array, array( 2) ))

and it returns me content and media results.

Why does it return results from media part ?

Note : content node id = 2 ; media node id = 43

Romeo Antony

Wednesday 15 September 2010 3:04:09 am

Try this

fetch( ezfind, search,
hash( query, $query,
facet, array( hash( query, 'path:2' )) ) )

Hope this helps

Regards

Romeo

Paul Borgermans

Wednesday 15 September 2010 4:27:20 pm

"

Hi,

I'm trying to use search function on content part with that :

fetch(ezfind, search, hash(query, $query, subtree_array, array( 2) ))

and it returns me content and media results.

Why does it return results from media part ?

Note : content node id = 2 ; media node id = 43

"

That should not happen at all in the sense of individual search results. Media objects can still appear inside other objects when they are embedded/related there. What version of eZ Find are you using?

Romeo: the suggestion you make is a bit wrong, I guess you meant 'filter' instead of 'facet'. Internally the subtree_array limitation is converted to a Solr filter anyway.

Regards

Paul

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

Romeo Antony

Thursday 16 September 2010 5:40:35 am

Yes Paul. It was my mistake it was filter' instead of 'facet

Thank you for correcting me.

Clément Matéo

Thursday 16 September 2010 6:07:12 am

I'm using 2.2 ezFind version.

I'm also investigating on indexing process, maybe indexes are wrong or obsolete...

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