thanks Nicolas... it's also written in the guide, http://trac.symfony-project.com/wiki/sfLucenePlugin :
"Note that the fields do not have to exist as fields in your database. As long as it has a getter on the model, you can use it in your index." thanks again , cirpo On Mon, Mar 3, 2008 at 6:25 PM, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 3, 2008 at 10:35 AM, cirpo <[EMAIL PROTECTED]> wrote: > > > is it a dumb question?? > > Not at all. As far as I've understand how sfLucene works, you have to > write some getter for the unexistant fields you want to index from > your Propel objects. Eg. if you got a Prodotti having a Category > object, you'd write a Post::getCategoryName() method which will > retrieve the category name of the post, and then config your > search.yml like this: > > MyIndex: > models: > Prodotti: > fields: > categoryName: text > > HTH > > ++ > > -- > Nicolas Perriault > http://prendreuncafe.com/blog > GSM: 06.60.92.08.67 > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
