Hi folks. My indexes have gone screwy and when I try to reindex I get an error: simon@stout:/etc/openguides/default$ sudo ./reindex.pl config param isn't an OpenGuides::Config object at ./reindex.pl line 13
The config param looks right to me: my $config = Config::Tiny->read('wiki.conf'); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
Any ideas?
Rev Simon Rumble wrote:
Hi folks. My indexes have gone screwy and when I try to reindex I get an error: simon@stout:/etc/openguides/default$ sudo ./reindex.pl config param isn't an OpenGuides::Config object at ./reindex.pl line 13
The config param looks right to me: my $config = Config::Tiny->read('wiki.conf'); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
Any ideas?
I think OpenGuides::Utils is quite strict about what it's being passed.
Replace with the following:
my $config = OpenGuides::Config->new( file => 'wiki.conf' ); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
If the reindex tool we are shipping is broken, this needs to be fixed (trac ticket needed).
This one time, at band camp, IvorW wrote:
I think OpenGuides::Utils is quite strict about what it's being passed.
Replace with the following:
my $config = OpenGuides::Config->new( file => 'wiki.conf' ); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
If the reindex tool we are shipping is broken, this needs to be fixed (trac ticket needed).
You also need to load Openguides:Config then. Still breoken for me though: simon@stout:/etc/openguides/default$ sudo ./reindex.pl Search::InvertedIndex::add_key_to_group() - Unable to read 'ged_000000000000_e_0000000036b6' record. Database may be corrupt. at /usr/share/perl5/CGI/Wiki/Search/SII.pm line 127
Rev Simon Rumble wrote:
You also need to load Openguides:Config then. Still breoken for me though: simon@stout:/etc/openguides/default$ sudo ./reindex.pl Search::InvertedIndex::add_key_to_group() - Unable to read 'ged_000000000000_e_0000000036b6' record. Database may be corrupt. at /usr/share/perl5/CGI/Wiki/Search/SII.pm line 127
Looks like it might be time for you to abandon Search::InvertedIndex in favour of Plucene.
I wasn't aware of anyone using a live guide that hadn't migrated away from SII.
On Mon, Aug 07, 2006 at 06:19:52PM +0100, IvorW wrote:
Looks like it might be time for you to abandon Search::InvertedIndex in favour of Plucene.
I wasn't aware of anyone using a live guide that hadn't migrated away from SII.
Indeed.
Can I take this comment as justification from removing the now poorly tested S::II support from the distribution? :)
Simon - unfortunately I agree with Ivor. Since none of the developers use S::II it's entirely possible that the support for it has broken :(
If you can't switch to Plucene easily, let me know and I'll look into the original problem.
Cheers,
Dominic.
Dominic Hargreaves wrote:
Indeed.
Can I take this comment as justification from removing the now poorly tested S::II support from the distribution? :)
This is now raised as ticket #131:
http://dev.openguides.org/ticket/131
Simon - unfortunately I agree with Ivor. Since none of the developers use S::II it's entirely possible that the support for it has broken :(
Also, the CPAN module is not being actively maintained. The author might be happy for somebody to take it over, but I'm not aware of any takers.
Plucene on the other hand is supported, actively maintained and widely used.
We should retain the "search backend" architecture, as there might be a better mechanism than Plucene available in future.
Ivor.
openguides-dev@lists.openguides.org