[Xapian-discuss] Omega/omindex question.
Jim Lynch
jim at fayettedigital.com
Fri Feb 10 16:22:43 GMT 2006
OK, I think. I guess I'm more familiar with scriptindex and trying to
translate what omindex is doing into scriptindex commands. From the
docs it doesn't indicate that you can index something without giving it
a field name, hence the reason for my question. But what you are saying
is the omindex can index data without a field name. Maybe I should go
back to using scriptindex, I understand it better. :)
Thanks,
Jim.
Olly Betts wrote:
>On Fri, Feb 10, 2006 at 03:42:56PM +0000, James Aylett wrote:
>
>
>>It's not entirely true to say that P="xxxx" means you are searching an
>>index on some field - you're constructing a query against the terms
>>that index the various documents in the database. Some terms are
>>easily generated, but some have "term prefixes", which are mapped from
>>their internal representation to more useful textual prefixes (and
>>back), so Asomething and author:something are considered equivalent
>>(modulo stemming).
>>
>>
>
>And the mapping is something you set dynamically. So you can offer
>aliases (e.g. subject: and title:) and even translate then (so a frontend
>for French speaking users might use nom: while the English frontend
>uses name:, with both working the same).
>
>
>
>>To search the body, then, you don't use a prefix in your query
>>string.
>>
>>
>
>Although if you want to allow "body:" to mean the same as no prefix, you
>can just add a mapping for body to the empty prefix (I've not tested
>this but it should work).
>
>
>
>>(We need to separate this use of the word 'field'. In my view, the
>>Document data should contain fields, and we should call these prefixes
>>something else.)
>>
>>
>
>We usually refer to the as prefixes, don't we?
>
>Cheers,
> Olly
>
>_______________________________________________
>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