#
bolo
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.
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.