[Xapian-discuss] How to search in many database?

Tom tom at lemurconsulting.com
Mon Jun 21 11:23:51 BST 2010


Hi Mr. T,

You can use the add_database() method of Database to add databases to
search over. See
http://xapian.org/docs/apidoc/html/classXapian_1_1Database.html

For example, in Python:

    import xapian

    db = xapian.Database()
    for dbname in ['foo.db', 'bar.db', 'wombat.db']:
        db.add_database(xapian.Database(dbname))

    enq = xapian.Enquire(db)
    ... etc ...

regards,
Tom


2010/6/21 ธีรเชน ธรรมชัย <t_tor107 at hotmail.com>:
>
> Hi, I'm newbie in xapian. I just use xapian for a few week ago and I would like to know:
>
>
>
> How I can search in many database at once time?
>
>
>
> Please send some answer to me.
>
>
>
> p.s. Sorry about my english.
>
>
>
> Regrad
>
> Mr.T
>
> _________________________________________________________________
> Hotmail: อีเมลที่เชื่อถือได้ซึ่งมาพร้อมกับการป้องกันอีเมลขยะที่มีประสิทธิภาพของ Microsoft
> https://signup.live.com/signup.aspx?id=60969
> _______________________________________________
> 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