This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » eZ Find » is the solr resultset accessible in...
expandshrink

is the solr resultset accessible in eZ template?

is the solr resultset accessible in eZ template?

Thursday 12 July 2012 2:31:41 pm - 4 replies

I am using the ezfIndexPlugin to add custom fields to the solr.

Is it possible to access these custom fields (or the complete solr result)
from the template showing the ezFind results?

Thursday 12 July 2012 6:04:35 pm

Quote from Mark Simon :

I am using the ezfIndexPlugin to add custom fields to the solr.

Is it possible to access these custom fields (or the complete solr result)
from the template showing the ezFind results?

 

eZFind returns an array of ezFind Objects.  This includes goodies like the scoring and (maybe) the original object depending on the parameters in the fetch. But, you can also get an object that is built from the xml resultset instead or in addition to (or something along those lines)..

I believe this URL will help you understand how you might get back the info you want (attrinbutes from solr result instead of building the results from fetching the original object)
http://harmssite.com/2012/04/ez-find-solr-attribute-storage/ 

Tuesday 17 July 2012 10:01:55 am

Yes, that was the Idea I was looking for.

Now I make a raw request and (eZ-) fetch the results from there.

Tuesday 17 July 2012 10:53:23 am

any chance of giving an example? I am looking at something similar as i do have a custom datatype which receives data from a third party service. The data returned should populate the index, but all of these data do not have their corresponding fields in the mysqldb. I have created a solr mapping handler which allows me to update the index with custom values, however neither of these values are available in my template. ( i have tried the enableSolrStorage flag and reindexed as well)

Could you give an example as to how to receive your solr field storage?

Wednesday 18 July 2012 9:48:09 am

I'm using

<span class="line">{fetch(ezfind, rawSolrRequest, hash(<parameters>))}
</span>

To make a raw solr request.

Then I fetch each node by the node id.

I'm still working at the xml recognition. So I do not have a codeexample yet.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from