[Xapian-discuss] refining search with PHP5
Olly Betts
olly at survex.com
Wed Mar 25 02:37:46 GMT 2009
On Tue, Mar 24, 2009 at 05:00:14PM +0000, James Aylett wrote:
> For languages, if you stash the language of a document in the document
> data, you can grab that out of each match to find out the languages in
> a (part of) the match set, although that's a bit messy. There may be a
> better solution to this.
Don't put it in the document data - put it in a document value slot.
That avoids having to pull in all the document data just to find a
2 or 3 character language code. The difference will be particularly
marked with chert (Xapian 1.1+) which stores values in streams.
Cheers,
Olly
More information about the Xapian-discuss
mailing list