|
List Info
Thread: omega on debian 0.9.5
|
|
| omega on debian 0.9.5 |

|
2006-04-21 07:55:46 |
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-bi
n/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
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-21 09:59:31 |
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-bi
n/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
a>
>
>
>
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-21 10:07:46 |
thanks Jim.
sorry for the bad typing... there's no space in the name of
the template I
used; the right link is:
http://www.opencontent.it/cgi-
bin/omega/omega?DB=osservatorio&FMT=osservatorio
the variables I used in the link are:
DB=osservatorio
FMT=osservatorio
many thanks,
gabriele
2006/4/21, Jim Lynch <jim fayettedigital.com>:
>
> 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.
>
>
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-21 14:24:47 |
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
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-22 14:42:19 |
Thanks Olly
> Can you try 0.9.5 on the Ubuntu box? That might help
narrow down where
> the problem is.
>
I had the same error as in Ubuntu, as recompiling the code
of the 0.9.5
version
the problem seems to be related to the
"scriptindex". Using the indexer
script I mentioned before and the input file containing the
data, I
generated the xapian's database using the command:
scriptindex DATABASE INDEXER_SCRIPT INPUT_FILE
from the omega's 0.9.4 version; then I updated the database
on my
server, in which runs omega 0.9.5, and I noticed that the
relevances now
work, as you can see at:
http://www.opencontent.it/cgi-bin/omega/omega?DB=o
b&FMT=ob
I hope it will help, even if I didn't check anything in the
code...
all the best,
gabriele
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-22 22:13:35 |
On Sat, Apr 22, 2006 at 04:42:19PM +0200, Gabriele
Francescotto wrote:
> the problem seems to be related to the
"scriptindex". [...]
> I hope it will help, even if I didn't check anything
in the code...
Thanks, that pointed me at the right place to look. The
attached patch
should fix it.
Cheers,
Olly
Index: scriptindex.cc
============================================================
=======
--- scriptindex.cc (revision 6851)
+++ scriptindex.cc (working copy)
 -349,8
+349,10 
}
if (code == Action::INDEX || code == Action::INDEXNOPOS)
{
useless_weight_pos = string::npos;
+ actions.push_back(Action(code, "",
weight));
+ } else {
+ actions.push_back(Action(code));
}
- actions.push_back(Action(code));
}
j = i;
}
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
| omega on debian 0.9.5 |

|
2006-04-24 13:54:03 |
> Thanks, that pointed me at the right place to look.
The attached patch
> should fix it.
>
great Olly,
I applied the patch and now the application works fine.
Many thanks for the precious support!
all the best,
gabriele
--
Gabriele Francescotto
OpenContent [free software solutions]
office: via Verdi, 19 - 38100 Trento (Italy)
web: http://www.opencontent.it
a>
email: gabriele.francescotto opencontent.it
phone: +39 3406714485
Key fingerprint = 07A1 56D1 6D4A DB3B BBD0 B2A2 E2C4 16F1
CA23 E889
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|
|
[1-7]
|
|