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.

eZ debug

Timing: Jan 18 2025 02:15:02
Script start
Timing: Jan 18 2025 02:15:02
Module start 'layout'
Timing: Jan 18 2025 02:15:02
Module start 'content'
Timing: Jan 18 2025 02:15:03
Module end 'content'
Timing: Jan 18 2025 02:15:03
Script end

Main resources:

Total runtime1.2607 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.9375152.6250
Module start 'layout' 0.00680.0054 740.562539.4453
Module start 'content' 0.01221.2469 780.0078600.4219
Module end 'content' 1.25910.0016 1,380.429712.1641
Script end 1.2606  1,392.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2834160.0002
Check MTime0.00140.1133160.0001
Mysql Total
Database connection0.00060.050410.0006
Mysqli_queries1.196494.9015670.0179
Looping result0.00080.0638650.0000
Template Total1.217496.620.6087
Template load0.00200.158520.0010
Template processing1.215496.408920.6077
Template load and register function0.00020.019010.0002
states
state_id_array0.00120.096110.0012
state_identifier_array0.00080.060020.0004
Override
Cache load0.00170.1326380.0000
Sytem overhead
Fetch class attribute can translate value0.00110.088130.0004
Fetch class attribute name0.00220.173670.0003
XML
Image XML parsing0.00120.093730.0004
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00100.0809230.0000
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs