eZ Community » Forums » Extensions » eZ Find » search by subtree
expandshrink

search by subtree

search by subtree

Wednesday 15 September 2010 11:49:19 am - 4 replies

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

Wednesday 15 September 2010 12:04:09 pm

Try this

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

Hope this helps

Regards

Romeo

Thursday 16 September 2010 1:27:20 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

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

Thursday 16 September 2010 2:40:35 pm

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

Thank you for correcting me.

Thursday 16 September 2010 3:07:12 pm

I'm using 2.2 ezFind version.

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from