Search by multiple attributes

Search by multiple attributes

Saturday 15 November 2008 1:42:03 pm - 3 replies

Author Message

Ivo Lukac

Sunday 16 November 2008 1:22:59 am

Hello Marco,

AFAIK you can't. Except with the new ezFind 2.0.0 alpha and facets functionality....

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

Stefan de Bruijn

Sunday 16 November 2008 5:49:27 am

From your example i think you can use the attribute filter from the fetch list function and not the search function.

With this you can filter on multiple attributes from the same class.

You cannot however do a search within this result. So you can get all results where "color=black" and "size=small" and "Eyes=green" and "age<2".
If "Cats" is also an attribute you can filter on this too. For instance list all results where "species=Cats" and "color=black" and "size=small" and "Eyes=green" and "age<2".

You cannot search for the occurence of "Cats" in all the (searchable) attributes in the resulted list ( where "color=black" and "size=small" and "Eyes=green" and "age<2". )

See the reference for usage and several examples.

Marco Zinn

Sunday 16 November 2008 10:30:54 am

Hi Stefan,

ah, yes, you're right.
I'll probably rather need a filter, than a search functionality.

Reference (so, others may skip the searching ;) ):
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list
-> Section "Attribute filtering"

Thanks for pointing me in the right direction.

Marco
http://www.hyperroad-design.com

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.