Forums / Extensions / eZ Find / EZFind search on contentobject_id or contentnode_id ?

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