Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# bolo 11/7/2006 1:23 PM
Hi Martijn,

As you sugested i have repost my question in the forum instead the mailing list.

This is my initial message :

---------------------------------------------------------------------------------
Hi Martijn,

We are using Cuyahoga framework to implement a web project and we having some problems with the search engine.

The problem is that not all the content is indexed. In our project we have arround 100 staticHtml pages and 1000 news in a custom made news module. News are not indexed at all and the static pages are half indexed.

We have use Luke (http://www.getopt.org/luke/) to analize the resulting index and found that only some staticHtml pages are indexed. It seems like the index rebuild is beeing interrupted in the middle of the process, but there is no error (timeout or something) showed in Cuyahoga control panel (it says success).

If we setup a new database and insert a few pages and news everything is working perfectly.

We would appreciate some light in the issue, thanks.

There is also a minor problem with jsCalendar cuyahoga control in Internet explorer (in firefox works as expected) : The calendar is not being showed and javascript console says "Calendar._TT.DEF_DATE_FORMAR is null or is not an object".

Thanks in advance ;)


César.

--------------------------------------------------------------------------------

And your reply :

--------------------------------------------------------------------------------

Hi César

Maybe it's better to use the forum for these kind of questions. it has a
broader audience so more people might know a solution.
> > The problem is that not all the content is indexed. In our project we
> > have arround 100 staticHtml pages and 1000 news in a custom made news
> > module. News are not indexed at all and the static pages are half indexed.
> >
Can you check the log file? All indexing errors during rebuild are logged.
> > There is also a minor problem with jsCalendar cuyahoga control in
> > Internet explorer (in firefox works as expected) : The calendar is not
> > being showed and javascript console says "Calendar._TT.DEF_DATE_FORMAR
> > is null or is not an object".
> >
What language are working with? The original jsCalendar has are some
incomplete language files so that might be the problem.

----------------------------------------------------------------------------------


Ok, i have checked the log and appears many errors like this :

2006-11-07 19:28:31,921 [2644] ERROR Cuyahoga.Web.Admin.RebuildIndex [(null)] <(null)> - Indexing contents of Section 309 - Bienvenidos, bienvenidas.
NHibernate.QueryException: in expected: s [from StaticHtmlContent s where s.Section.Id = ? ]
at NHibernate.Hql.FromParser.Token(String token, QueryTranslator q)
at NHibernate.Hql.ClauseParser.Token(String token, QueryTranslator q)
at NHibernate.Hql.PreprocessingParser.Token(String token, QueryTranslator q)
at NHibernate.Hql.ParserHelper.Parse(IParser p, String text, String seperators, QueryTranslator q)
at NHibernate.Hql.QueryTranslator.Compile()
at NHibernate.Hql.QueryTranslator.Compile(ISessionFactoryImplementor factory, IDictionary replacements, Boolean scalar)
at NHibernate.Impl.SessionFactoryImpl.GetQuery(String queryString, Boolean shallow)
at NHibernate.Impl.SessionImpl.GetQueries(String query, Boolean scalar)
at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters)
at NHibernate.Impl.SessionImpl.Find(String query, Object value, IType type)
at Castle.Facilities.NHibernateIntegration.SessionDelegate.Find(String query, Object value, IType type)
at Cuyahoga.Modules.StaticHtml.StaticHtmlModule.GetContent()
at Cuyahoga.Modules.StaticHtml.StaticHtmlModule.GetAllSearchableContent()
at Cuyahoga.Web.Admin.RebuildIndex.BuildIndexByNode(Node node, IndexBuilder ib)



Do you have any idea why it is given such error in the hql query for the StaticHtmlContent section?


And there is another error regarding our custom News module :

2006-11-07 19:28:22,500 [2644] ERROR Cuyahoga.Web.Admin.RebuildIndex [(null)] <(null)> - Unable to create Module for Section 271 - Noticias de Prensa.
System.Exception: The method or operation is not implemented.
at Cuyahoga.Web.Admin.RebuildIndex.ModuleLoader_ModuleAdded(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Cuyahoga.Web.Components.ModuleLoader.OnNHibernateModuleAdded()
at Cuyahoga.Web.Components.ModuleLoader.GetModuleFromType(Type moduleType)
at Cuyahoga.Web.Components.ModuleLoader.GetModuleFromSection(Section section)
at Cuyahoga.Web.Admin.RebuildIndex.BuildIndexByNode(Node node, IndexBuilder ib)

It seems that the rebuild index part is not finished for modules that not belongs to core system. Could explain a little bit what have to be done to make it work? We are in a little hurry (we have a deadline for the project next week) and we could finish the work that have to be done in RebuildIndex.


Regarding the jsCalendar problem i will look deeper into it (spanish is our locale settings). Thanks for the tip ;)

Regards,

César.




# martijnb 11/7/2006 2:52 PM
Hmmm, is that the current SVN version you're using? We can't guarantee that this already works correctly, also see the big TODO in RebuildIndex.

We always like to be as helpful as possible, but in this case you got yourself a little into trouble by using the SVN version for a real (and not so small) project.

Is it possible for you guys to use the 1.0 version? That is the right version for production use.

I'll create a Jira to have a good look at the search issues for the next release.
# bolo 11/7/2006 3:27 PM
martijnbHmmm, is that the current SVN version you're using? We can't guarantee that this already works correctly, also see the big TODO in RebuildIndex.

We always like to be as helpful as possible, but in this case you got yourself a little into trouble by using the SVN version for a real (and not so small) project.

Is it possible for you guys to use the 1.0 version? That is the right version for production use.

I'll create a Jira to have a good look at the search issues for the next release.


SVN trunk seems pretty stable in our tests (and i am still happy with the election). We will debug to see if we can fix the problems (we already track down a couple of bugs in our ISearchable implementation). I will keep you informed.

Big thanks for the help ;)

César.
# bolo 11/15/2006 10:58 AM
Hi Martjin,

After some debuging. I think there is a threading problem in Cuyahoga trunk. The Rebuildindex part is affected by this problem. It seems to appears always the first time rebuild index is executed (with the index directory empty). Second time should run fine.

We didnt realize that because when debuging we always clean the index directory and start the webserver so we always face the error.

We have also fix the calendar control problem with spanish locale settings (it is a matter of replace spanish leters with "tilde" : á,é, etc. with aacute; etc). We could send you the modified calendar-es.js if you want.

Thanks,

César.

# martijnb 11/15/2006 12:41 PM
boloAfter some debuging. I think there is a threading problem in Cuyahoga trunk. The Rebuildindex part is affected by this problem. It seems to appears always the first time rebuild index is executed (with the index directory empty). Second time should run fine.

Allright! This problem is probably caused by the missing code at the TODO spot. What happens is that a rebuild of the index will go through the entire site and load all modules in one go without properly rebuilding the sessionfactory (that still has to be handled). You could check this by first hitting every module from the outside by browsing your site. After every module is hit at least one time, rebuilding the index should also work.
We have also fix the calendar control problem with spanish locale settings (it is a matter of replace spanish leters with "tilde" : á,é, etc. with aacute; etc). We could send you the modified calendar-es.js if you want.

That would be great. Just create a Jira issue and attach the fix.

Thanks