eZ Community » Forums » Extensions » eZ Find » EZFind search on contentobject_id or...
expandshrink

EZFind search on contentobject_id or contentnode_id ?

EZFind search on contentobject_id or contentnode_id ?

Friday 15 October 2010 3:37:09 pm - 4 replies

Hello,

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

Thanx in advance !

Friday 15 October 2010 4:21:32 pm

Use filter on this solr attributes:

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

Saturday 16 October 2010 1:40:19 am

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

Saturday 16 October 2010 9: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

Monday 18 October 2010 6:49:46 pm

Great thanx a lot !

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from