This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Search plugins » Lucene doesn't (re)index on object save
Lucene doesn't (re)index on object save [message #100203] Tue, 01 June 2010 23:14 Go to next message
Junni  is currently offline Junni
Messages: 90
Registered: January 2007
Location: Belgium
Member
Hi all,

I have installed and configured the sfLucenePlugin. Indexing through terminal works just fine, and the search page delivers results with categories. So far, so good!

When I change some indexed fields from an object and save the changes, the saveIndex() is not called. When I override the save() method and call the Lucene saveIndex() manually, an error is thrown with the message that the method is unknown. It seems the Propel behavior is not active.

I've added the behavior, as mentioned in the readme of the plugin:

sfLucenePropelBehavior::getInitializer()->setup('Content');


Anyone with an idea or suggestion?

Maybe important: I'm using Propel15Plugin.

[Updated on: Tue, 01 June 2010 23:30]


CryptoNet | X-Power
Re: Lucene doesn't (re)index on object save [message #100205 is a reply to message #100203 ] Tue, 01 June 2010 23:37 Go to previous message
Junni  is currently offline Junni
Messages: 90
Registered: January 2007
Location: Belgium
Member
Rookie mistake! I thought propel behaviors were enabled with the following line:

propel.behavior.symfony_behaviors.class        = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors


But I also had to enable the addBehaviors:

propel.builder.addBehaviors = true


Problem solved!


CryptoNet | X-Power
Previous Topic:Using MySQL Full-text Searching
Next Topic:create rtf file
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software