EZFind search on contentobject_id or contentnode_id ?

EZFind search on contentobject_id or contentnode_id ?

Friday 15 October 2010 6:37:09 am - 4 replies

Author Message

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.