[Xapian-discuss] PERL: Howto search from multi, many index databases.

Kevin SoftDev kevin.softdev at gmail.com
Fri Apr 7 03:18:20 BST 2006


Okay, I've got it working ...

   // using multiple databases
   $db = Search::Xapian::Database->new('/index1');
   $db->add_database(Search::Xapian::Database->new('/index2'));
   $db->add_database(Search::Xapian::Database->new('/index3'));

Philip, thank you for responding to my quetion in 3 minutes.


-Kevin
http://nitra.net



On 4/6/06, Philip Neustrom <philipn at gmail.com> wrote:
>
> make the first database, then using that db call db.add_database(db_loc).
>
> On 4/6/06, Kevin SoftDev <kevin.softdev at gmail.com> wrote:
> > I searched all the documentation but I was not able find an article that
> > clearly would
> > show how to set up two or more index databases that could be searched
> from
> > all
> > of them. I am using PERL because I could not get PHP working with
> Xapaian.
> >
> >
> > I tried this and seems to me it dies niot work:
> >
> > $db = Search::Xapian::Database->new( '/home/search/index1',
> > '/home/search/index2' );
> >
> > Anyone has an idea ?
> >
> > -Kevin
> > _______________________________________________
> > Xapian-discuss mailing list
> > Xapian-discuss at lists.xapian.org
> > http://lists.xapian.org/mailman/listinfo/xapian-discuss
> >
>


More information about the Xapian-discuss mailing list