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 » Culture problems when using Lucene
Culture problems when using Lucene [message #60378] Mon, 08 September 2008 07:47 Go to next message
skywalker  is currently offline skywalker
Messages: 334
Registered: March 2008
Location: Norway
Faithful Member
Hello folks,

We have a problem using lucene in a production environment. While developing the application we have had no problem using it.

But after freezing and deploying our application to the production server, we get the following error when trying to build the index:

./symfony lucene-rebuild avrfreaks


  [sfLuceneException]
  Culture "en" is not enabled.


We do not use i18n.

Any suggestions about what's wrong?


May the source be with you
Re: Culture problems when using Lucene [message #60381 is a reply to message #60378 ] Mon, 08 September 2008 08:15 Go to previous messageGo to next message
wissl  is currently offline wissl
Messages: 447
Registered: March 2008
Location: Germany
Faithful Member
From the README of sfLucenePlugin:

Quote:

If you require i18n support, you must define the cultures that you support under index. Use the following syntax:

index:
cultures: [fr_FR](en_US,)

(If you receive an exception saying "Culture XXX is not enabled" then define the culture even if you do not use i18n.)
Re: Culture problems when using Lucene [message #60382 is a reply to message #60381 ] Mon, 08 September 2008 08:18 Go to previous messageGo to next message
skywalker  is currently offline skywalker
Messages: 334
Registered: March 2008
Location: Norway
Faithful Member
[Updated]
Since we don't want i18n we haven't enabled i18n. I tried to enable i18n and/or define a cultures:

  index:
    cultures: [en]


Still it complains.

I have also tried to enable i18n in the apps config file setting.yml and defined the culture in the search.yml, but still we get the same error. When trying to use the application we get the Internal error 500 page. Sad

I also wonder why this works in the development environment (on a different virtual server) and not in production.

[Updated on: Mon, 08 September 2008 08:30]


May the source be with you
Re: Culture problems when using Lucene [message #60387 is a reply to message #60378 ] Mon, 08 September 2008 09:14 Go to previous messageGo to next message
wissl  is currently offline wissl
Messages: 447
Registered: March 2008
Location: Germany
Faithful Member
I think the settings have to be made in the projects search.yml only. Have you tried that yet?
Re: Culture problems when using Lucene [message #60388 is a reply to message #60387 ] Mon, 08 September 2008 09:22 Go to previous messageGo to next message
skywalker  is currently offline skywalker
Messages: 334
Registered: March 2008
Location: Norway
Faithful Member
I'm trying that now. And it seems like it will create new indexes. The problem is that it takes 2 hours to create new indexes (due to a huge database).

When new indexes are created I will check if the application work. I'll post an update here when the index generation has completed and I'm able to test the application again.

Update:
Seems like the problem has been solved, but due to other problems, which has occured, I cannot be 100% sure yet.

Anyway, thanks.

[Updated on: Mon, 08 September 2008 12:24]


May the source be with you
icon14.gif  Re: Culture problems when using Lucene [message #103375 is a reply to message #60378 ] Sun, 01 August 2010 13:39 Go to previous message
wm_maw  is currently offline wm_maw
Messages: 8
Registered: July 2010
Location: Bucuresti
Junior Member

symfony doctrine:build --all --no-confirmation --and-load --env=prod


I don't use the plugin -I made my own plugin- but the --env=prod does the trick for me.


Using SYMFONY 1.4.6
Previous Topic:Lucene Order By Score
Goto Forum:
  

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