Wednesday 16 May 2012 8:11:42 am - 3 replies
Hi
I had install the ezfind latest version
Now i am using the ezfind search in tpl file the tpl file code is given below
TPL file code
==========================
{def $search = fetch( ezfind, search, hash( query , 'test', 'subtree_array', array(110457,110481,111592), 'class_id', array('article'), 'limit', 10 ) )}
{foreach $search as $foo_inner} {$foo_inner|attribute(show)} {/foreach}
====================================
But it not retuning any thing Please check the result that i get on running above code
------------------------------------------------------
| Attribute | Type | Value |
|---|
| Attribute | Type | Value |
|---|
| Attribute | Type | Value |
|---|
| Attribute | Type | Value |
|---|---|---|
| facet_fields | NULL | |
| facet_queries | NULL | |
| engine | string | 'eZ Find 2.2 search plugin © 1999-2010 eZ Systems AS, powered by Apache Solr 1.4' |
| hasError | boolean | false |
| error | NULL | |
| responseHeader | array | Array(3) |
| >status | integer | 0 |
| >QTime | integer | 181 |
| >params | array | Array(21) |
| spellcheck | boolean | false |
| spellcheck_collation | boolean | false |
------------------------------------------------------
is there any problem in the ezfind installation or in the fetch function
Please help me out
Wednesday 16 May 2012 12:06:38 pm
Quote from Philippe Vincent-Royol :Hello Jignesh
Use $search.SearchResult on your foreach it could help
![]()
Try an {$search|attribute(show, 1)} for more informations
Cheers
I try this but it return nothing see result below
----------------------------------------------------
Attribute Type Value
-----------------------------------
is there any setting problem ?
Wednesday 16 May 2012 12:29:29 pm
Hello Jignesh,
I'm not really sure about this, but I think that class_id parameter in ezfind/search fetch does not support class identifiers, only class IDs. So try your fetch like this:
{def $search = fetch( ezfind, search, hash( 'query', 'test', 'subtree_array', array( 110457, 110481, 111592 ), 'class_id', array( 16 ), 'limit', 10 ) )}
Modified on Wednesday 16 May 2012 12:29:48 pm by Edi Modrić
You must be logged in to post messages in this topic!