exact match from related objects

Author Message

Ivo Lukac

Saturday 25 June 2011 3:15:57 am

"

Ops it doesn't work...

it takes also results from other fields (attr_body_t).
Is there a way to restrict the results anly to my custom field, actually my fetch is:

etch( ezfind, search, hash(
                                                 subtree_array, array($canale_node_id),
                                                 ignore_visibility, false(),
                                                 filter,array(
                                                         concat($search_field,$category_name),
                                                         concat('-meta_id_si:',$actual_objectid)
                                                         ),
                                                 class_id, array( 'ame_video','ame_content'),
                                                 limit, 5,
                                                 sort_by, hash(published, desc)))

Thanks.

Roberto

"

Hi,

Can you paste ezfind/solr request message (enable debug) so we can see what is going on?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

roberto perata

Monday 27 June 2011 4:29:02 am

I've seen solr index also the object_id I was looking for, so I'm filtring that attribute.

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:49:47
Script start
Timing: Jan 18 2025 02:49:47
Module start 'layout'
Timing: Jan 18 2025 02:49:47
Module start 'content'
Timing: Jan 18 2025 02:49:47
Module end 'content'
Timing: Jan 18 2025 02:49:47
Script end

Main resources:

Total runtime0.4041 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 590.1563152.4844
Module start 'layout' 0.00770.0025 742.640639.9141
Module start 'content' 0.01020.3924 782.5547524.4531
Module end 'content' 0.40260.0014 1,307.007814.2656
Script end 0.4040  1,321.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.8703160.0002
Check MTime0.00140.3524160.0001
Mysql Total
Database connection0.00110.266810.0011
Mysqli_queries0.360089.1063550.0065
Looping result0.00050.1132530.0000
Template Total0.374092.520.1870
Template load0.00230.570920.0012
Template processing0.371691.974420.1858
Template load and register function0.00010.020310.0001
states
state_id_array0.00070.176210.0007
state_identifier_array0.00070.172520.0003
Override
Cache load0.00190.4635240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.127920.0003
Fetch class attribute name0.00050.133230.0002
XML
Image XML parsing0.00060.137420.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00080.1861170.0000
String conversion0.00000.001540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs