koha-zebra
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-zebra] firstinfield and position attributes usage


From: Sebastian Hammer
Subject: Re: [Koha-zebra] firstinfield and position attributes usage
Date: Sat, 09 Jun 2007 21:14:59 -0400
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Henri-Damien LAURENT wrote:

Hi,
I have problems using firstinfield and position attributes and then
querying with @attr 3=1.
Indeed, some users would find it cool to search anatomy only with the
beginning of the phrase.


First of all, I wonder how I can define a custom index and use it.
It seems that using completeness attribute implies @attr 6=1 if 0 @attr
6=2 or @attr 6=1.
position is not defined in you documentation.
firstinfield seems to be used along with it.
Hi Henri,

Zebra at present does not support the first-in-field attribute, although we sometimes have talked about doing so. You can simulate it pretty well by using a combination of complete subfield and truncation. You'll note there's also a way to configure an index to ignore leading articles (the, an, a, etc.), which is a good way to increase your recall.. yes, it's hard to make this word with word boundaries, (Adam might have a suggestion for some regexp magic that would work), but I think that's probably a minor problem in most cases.

--Sebastian

I tried to define :

index h
completeness 0
position 1
firstinfield 1
charmap sort-string-utf.chr

in default.idx and
used it in record.abs :
melm 250$a Heading, Heading:h, Heading:s

and queried my base as such :
f @and @attr "1=Authority/format-id" @attr 5=100 MSC  @attr "1=Heading"
@attr 3=1 An

Answer was :
ERROR 119

Is there something I missed ?


--
Sebastian Hammer, Index Data
address@hidden   www.indexdata.com
Ph: (603) 209-6853 Fax: (866) 383-4485





reply via email to

[Prev in Thread] Current Thread [Next in Thread]