EZFind search on contentobject_id or contentnode_id ?

Author Message

H-Works Agency

Friday 15 October 2010 6:37:09 am

Hello,

How is it possible to match object on their contentobject_id or contentnode_id ?

Thanx in advance !

EZP is Great

Ivo Lukac

Friday 15 October 2010 7:21:32 am

Use filter on this solr attributes:

  • meta_id_si - for object id
  • meta_node_id_si - for node id

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

Benjamin Kroll

Friday 15 October 2010 4:40:19 pm

Thanks for the note Ivo. Do you have an example (or link to an example) on how to use these solr meta attributes with an (ezfind, search ... ) fetch?
Thanks,

Ben

Christian Rößler

Saturday 16 October 2010 12:26:58 am

{def $foo = fetch( 'ezfind', 'search', hash( 'filter', array( 'meta_id_si:123' ) ) )}
{def $foo = fetch( 'ezfind', 'search', hash( 'filter', array( 'meta_id_si:[10 TO 50]', 'article/someattribute:somevalue' ) ) )}

You can find more information here: http://doc.ez.no/Extensions/eZ-Find/2.2/Customization/Template-fetch-functions

Good luck,
chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

H-Works Agency

Monday 18 October 2010 9:49:46 am

Great thanx a lot !

EZP is Great

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 30 2025 00:13:33
Script start
Timing: Jan 30 2025 00:13:33
Module start 'layout'
Timing: Jan 30 2025 00:13:33
Module start 'content'
Timing: Jan 30 2025 00:13:33
Module end 'content'
Timing: Jan 30 2025 00:13:33
Script end

Main resources:

Total runtime0.0157 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.4063151.2422
Module start 'layout' 0.00580.0035 739.648436.7188
Module start 'content' 0.00930.0051 776.367296.0000
Module end 'content' 0.01440.0013 872.367233.9766
Script end 0.0157  906.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.9572140.0002
Check MTime0.00117.1427140.0001
Mysql Total
Database connection0.00074.331710.0007
Mysqli_queries0.004327.503630.0014
Looping result0.00000.113710.0000
Template Total0.00106.110.0010
Template load0.00074.387810.0007
Template processing0.00031.710310.0003
Override
Cache load0.00052.938410.0005
General
dbfile0.00106.639480.0001
String conversion0.00000.042540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs