Forums / Developer / Custom search engine and results

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Custom search engine and results

Author Message

Jonathan Marsigny

Tuesday 28 December 2004 7:02:01 am

Hello,

I want to custom my search.
I would to search in 'Keyword' box (datatype) only and not in the title or in the main text.

Can I use 'fetch' and how ?

Regards,

Jonathan

Łukasz Serwatka

Tuesday 28 December 2004 7:13:39 am

Hi,

You can search in class attribute.

{section loop=fetch( content, search, hash( text, 'your_text',
           class_attribute_id, your_class_attribute_id ) )}
   {$:item.name}<br />
{/section}

http://ez.no/ez_publish/documentation/reference/data_fetching/content/search

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog