Forums / Extensions / eZ Find / How to index differents ezAttribute in the same SolR attribute

How to index differents ezAttribute in the same SolR attribute

Author Message

Frédéric RINALDI

Thursday 03 June 2010 8:41:50 am

Hello,

I'm looking for a solution to be able to index differents attribute of different ez content class in a same SOLR attribute.

For example the event start date attribute, the article publish date attribute and my custom date of a custom class.

Like this, I can improve the search mechanism and also use the sort feature for different content sharing a logical date store in different attribute.

I don't know if I'm clear enough but I hope so and I wish somebody has the solution.

Thanks

Paul Borgermans

Tuesday 08 June 2010 11:25:54 am

This is a bit hard to accomplish because of the very variable nature of content classes. The main problem is that for dates to be useable in filtering and sorting, they should technically be "single valued".

The best would be to extend eZ Find with a (client side) copying of fields, which is not there ... feel free to file an enhancement request.

In the meantime, if you have unique identifiers for your content class attributes you want to create a common "alias" for, you can use the copyfield directives in the Solr schema xml file.

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans