Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] swishdescription not showing in search results

From: at <Troy>
Date: Mon, 29 Oct 2012 19:55:04 -0700
On Tue, Oct 23, 2012 at 6:54 PM, Peter Karman <peter(at)not-real.peknet.com> wrote:

> Troy Wical wrote on 10/23/12 4:40 PM:
> > Seem to be getting the same results. Being plain text files, is TXT not
> more
> > appropriate?
> >
> > [root(at)not-real.purple /home/mail-archive/search]# cat t2.conf
> > IndexDir /usr/local/www/data.type2/mail-archive/type2
> > IndexReport 1
> > DefaultContents XML*
> > StoreDescription XML* <body> 10000
>
> /me looks closer at code.
>
> Since the MailFS aggregator acts more like a FS aggregator than a Mail
> aggregator, no fields are being defined for you like the Mail aggregator
> does.
> Maybe try:
>
>  StoreDescription XML* <part>

instead?



Took another shot at it, but no dice. I had this working on a Debian box
but that box has gone offline for now, and I'm trying to rebuild in the
mean time. Having a hard time believing I didn't back all that work up
somewhere, but I'm not finding it. In any case, here is the latest config
I'm using, which is giving the same search results that are missing a
description.

As always, appreciate the help.

[user(at)not-real.purple /home/mail-archive/search]# swish3 -S mailfs -c t2.conf -i
/usr/local/www/data.type2/mail-archive/type2/*

[user(at)not-real.purple /home/mail-archive/search]# cat t2.conf
IndexDir /usr/local/www/data.type2/mail-archive/type2
IndexReport 1
DefaultContents XML*
StoreDescription XML* <part> 10000
ReplaceRules replace "/usr/local/www/data.type2/mail-archive/" "
http://type2.com/mail-archive/"
IndexFile /home/mail-archive/search/t2.index
[user(at)not-real.purple /home/mail-archive/search]#

[user(at)not-real.purple /home/mail-archive/search]# cat
/usr/local/www/cgi-bin/.swishcgi.conf
use lib ( '/usr/local/lib/swish-e/perl' );
return {
        title                   => ' ',
        page_size               => 20,
        swish_binary            => '/usr/local/bin/swish-e',
        display_props           => [qw/ swishtitle swishdescription /],
        swish_index             =>
['/home/mail-archive/search/t2.index/index.swish-e'],
        select_indexes          => {
            method  => 'checkbox_group',
            labels  => ['Type2'],  # Must match up one-to-one to swish_index
            description => 'Select mailing list(s): ',
    }
}
[user(at)not-real.purple /home/mail-archive/search]#


_______________________________________________
Users mailing list
Users(at)not-real.lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Oct 30 2012 - 02:55:08 GMT