Hi,

I'm trying to set up a search engine basic functionnality for a 1.1
project, and chose the news plugin (I know, it's alpha..).

I want it to scan a model "Article". For that purpose, I have put in
my ->configure():

                $this->setEngine(new 
xfLuceneEngine(sfConfig::get('sf_data_dir') . '/
index/myIndex'));

                $propelIdentifier = new xfPropelIdentifier('Article');
                $articleService = new xfService($propelIdentifier);
                $articleService->addBuilder(new xfPropelBuilder(array(
                        new xfField('title', xfField::TEXT))
                ));

                $articleService->addRetort(new xfRetortField);
                $articleService->addRetort(new 
xfRetortRoute('content/index?title=
$title$'));

                $this->getServiceRegistry()->register($articleService);

Two questions:

A) When I try to populate the index, I have this error:
"No connection params set for propel". I've tried everything in my
config file, in the original batch script, in the original populate
method, but I can locate the problem.

B) What about I18n? For that purpose I wanted to create an index per
language, and then make a group.

I wanted to add a criteria when setting my index, like
$c = new Criteria();
$c->add(ArticleI18nPeer::CULTURE, 'fr');
$propelIdentifier->setDiscoverCriteria($c);
$propelIdentifier->setPeerSelectMethod('doSelectWithI18n');

Am I right?

Thanks
Cedric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to