Forums / Extensions / eZ Find / search by subtree
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
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.
Paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
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.
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...
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0001 secs