[Xapian-discuss] Indexing & Querying multiple fields
Olly Betts
olly at survex.com
Tue Jan 16 13:44:57 GMT 2007
On Tue, Jan 16, 2007 at 09:24:53AM +0100, M.J. van der Veen wrote:
> I intended to say that with this index file, words indexed in the
> 'text' field can be found, but those in the 'question' field can't.
> I'm not sure why, since they are both in the general index?
It's all the same index really, but they both should generate unprefixed
terms.
I'd suggest trying to find a simple one record input file which shows
this problem. If it looks like a scriptindex problem, send us the
example, or open a bug report for it.
The delve tool (in the examples subdirectory of xapian-core) is a handy
way to find out what terms index a particular document when trying to
debug problems like this. Another way is Omega's godmode template (use
FMT=godmode).
> >You need to add something like $setmap{prefix,user,XU} to your query
> >template, and then you can use user:maarten in the P parameter. See
> >termprefixes.txt in the Omega docs for details - you want to read the
> >section "Probabilistic Fields":
> >
> >http://svn.xapian.org/trunk/xapian-applications/omega/docs/termprefixes.txt?view=co
>
> I thought this was only the case when you search with the omega cgi?
> However, I have a socket connection to the omega binary. Do I still
> need the query template then? Or do you mean the FMT template (which
> is only for parsing output right)?
Yes, the FMT template (FMT defaults to `query' if not specified).
This controls the output formatting, and also allows you to specify a
few things about the database (like these mappings from user-visible
prefixes to term prefixes).
> So, do I both need the date=yyyymmdd and the D/M/Y booleans, or can I
> use one of both?
The "date" action generates the D-, M-, and Y- terms for you, so it's
redundant to use "date" and also add the terms yourself.
> Is there a difference in performance?
Not really. There would be no difference at search time anyway.
Cheers,
Olly
More information about the Xapian-discuss
mailing list