Gabriele Francescotto - OpenContent
2006-Apr-21 08:56 UTC
[Xapian-discuss] omega on debian 0.9.5
Hi, I've tested omega (cgi) on several sql databases on my local machine in which runs Ubuntu, using the version 0.9.4 (installed using apt), and I was really satisfied for the results I obtained. I customized a bit the "query" template. But once I installed omega on the server (using apt for Debian, and omega version 0.9.5), I discovered that the relevances didn't work, as you can see: http://www.opencontent.it/cgi-bin/omega/omega?DB=osservatorio&FMT=osservator io I don't know if the problem is related to the template's customization, nor to the indexscript: they are the same I used for the omega 0.9.4 installation I had on my local machine with Ubuntu. that's the indexscript I wrote: --------------------------------------indexscript------------ id : field=id boolean=Q unique=Q title : field=title weight=3 index content : index truncate=300 field=content taxonomy : field=taxonomy url : field=url pubtime : date=yyyymmdd field=pubtime type : field=type boolean=XT ----------------------------------------------------- any idea? did you ever see similar problems? all the best, gabriele
When I went to the site, I received the following message: Exception: Couldn't read format template `osservator' (No such file or directory) Just one question, what is the "io" at the end of the command? Is the template named "osservator io", with a space? If so, I suggest you change it to eliminate the space unless you want to escape the the space. In any case, be sure the template is world readable, is in the same place the omega.conf points to and is spelled right. Jim. Gabriele Francescotto - OpenContent wrote:> Hi, > I've tested omega (cgi) on several sql databases on my local machine > in which runs Ubuntu, using the version 0.9.4 (installed using apt), > and I was really satisfied for the results I obtained. I customized a > bit the "query" template. > But once I installed omega on the server (using apt for Debian, and > omega version 0.9.5), I discovered that the relevances didn't work, as > you can see: > http://www.opencontent.it/cgi-bin/omega/omega?DB=osservatorio&FMT=osservator > io > I don't know if the problem is related to the template's > customization, nor to the indexscript: they are the same I used for > the omega 0.9.4 installation I had on my local machine with Ubuntu. > that's the indexscript I wrote: > --------------------------------------indexscript------------ > id : field=id boolean=Q unique=Q > title : field=title weight=3 index > content : index truncate=300 field=content > taxonomy : field=taxonomy > url : field=url > pubtime : date=yyyymmdd field=pubtime > type : field=type boolean=XT > ----------------------------------------------------- > > any idea? did you ever see similar problems? > all the best, > gabriele > > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss@lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss > > >
On Fri, Apr 21, 2006 at 09:55:46AM +0200, Gabriele Francescotto - OpenContent wrote:> I don't know if the problem is related to the template's customization, nor > to the indexscript: they are the same I used for the omega 0.9.4 > installation I had on my local machine with Ubuntu.The index script looks fine, and I don't see how you could customise the template to cause this (well, unless you hard wired the relevance percentage and image) and anyway it works on a different box. It sounds like an bug introduced in 0.9.5, which is rather odd as omega didn't change much between 0.9.4 and 0.9.5. Or perhaps an architecture issue if the two boxes are have different CPUs (or are running e.g. as x86 and x86-64). But I've just checked SVN HEAD and that seems to work fine for me on x86-64 Ubuntu. Can you try 0.9.5 on the Ubuntu box? That might help narrow down where the problem is. Cheers, Olly