List Info

Thread: Position attribute searching




Position attribute searching
user name
2006-07-28 21:42:53
Hi,

I'm having problems getting position attribute searching
(3=1, first in 
field) working. I'm using yaz-client (yaz version 2.2.12)
connecting to 
Zebra 1.3.34.

Right now it appears that the position attribute has no
effect at all on 
the search results. The search 'f attr 1=4 lincoln' returns
the same 
results as the search 'f attr 1=4 attr 3=1
lincoln'.

Titles returned from both searches include:
245 10 $a Lincoln Steffens / $c Russell M. Horton. --
245 10 $a Lincoln and his generals.
245 10 $a Abraham Lincoln, $b the prairie years / $c by Carl
Sandburg.
245 00 $a Abraham Lincoln / $c by David D. Anderson.

Unless I'm misunderstanding the concept, I would have
expected the first 
search to return all 4 titles, and the second search (with
the position 
attribute) to only return the first two.

Any help with this would be much appreciated. I run both the
client and 
server, so if it's possible to configure this at all, I
should be able 
to make it work.

thank you,
John

-- 
John Durno
Coordinator, Information Technology Services
University of Victoria Libraries
PO Box 1800 Stn. CSC, Victoria BC, V8W 3H5


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Position attribute searching
user name
2006-07-29 08:14:41
Hi John,

÷ ÐÔ, 28/07/2006 × 14:42 -0700, John Durno ÐÉÛÅÔ:
> Hi,
> 
> I'm having problems getting position attribute
searching (3=1, first in 
> field) working. I'm using yaz-client (yaz version
2.2.12) connecting to 
> Zebra 1.3.34.
> 
> Right now it appears that the position attribute has no
effect at all on 
> the search results. The search 'f attr 1=4
lincoln' returns the same 
> results as the search 'f attr 1=4 attr 3=1
lincoln'.
> 
> Titles returned from both searches include:
> 245 10 $a Lincoln Steffens / $c Russell M. Horton. --
> 245 10 $a Lincoln and his generals.
> 245 10 $a Abraham Lincoln, $b the prairie years / $c by
Carl Sandburg.
> 245 00 $a Abraham Lincoln / $c by David D. Anderson.
> 
> Unless I'm misunderstanding the concept, I would have
expected the first 
> search to return all 4 titles, and the second search
(with the position 
> attribute) to only return the first two.
> 
> Any help with this would be much appreciated. I run
both the client and 
> server, so if it's possible to configure this at all,
I should be able 
> to make it work.

There is a method to get 3=1 6=1 behavior from Zebra,
which offered by
Olga Baranova (Olga.Baranovausu.ru).

The position of a field has not no effect in Zebra at the
moment, and an
idea release 'first in field' via completeness attribute
(complete field
6=3) and truncation attributes. Need rewrite query like

a) if the truncation use in query:

        1=4 3=1 5=1 6=1  => \
        1=4 3=1 5=1 6=3 
        
b) if the truncation not use in query:

        1=4 3=1 5=100 6=1 => \
        or 1=4 3=1 5=100 6=3  1=4 3=1 4=1 5=101 6=3
        {term #}
        
Here {term #} is term+' '+'#'.

So, the query we have to rewrite to

or
1=4
3=1
5=100 6=3  \
1=4
3=1
4=1
5=101 6=3 {lincoln #}

Best regards,
Oleg


> 
> thank you,
> John
> 


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Position attribute searching
user name
2006-07-31 16:51:51
Thank you, that appears to work perfectly. Much appreciated.

best,
John

Oleg Kolobov wrote:
> Hi John,
> 
> ÷ ÐÔ, 28/07/2006 × 14:42 -0700, John Durno ÐÉÛÅÔ:
>> Hi,
>>
>> I'm having problems getting position attribute
searching (3=1, first in 
>> field) working. I'm using yaz-client (yaz version
2.2.12) connecting to 
>> Zebra 1.3.34.
>>
>> Right now it appears that the position attribute
has no effect at all on 
>> the search results. The search 'f attr 1=4
lincoln' returns the same 
>> results as the search 'f attr 1=4 attr 3=1
lincoln'.
>>
>> Titles returned from both searches include:
>> 245 10 $a Lincoln Steffens / $c Russell M. Horton.
--
>> 245 10 $a Lincoln and his generals.
>> 245 10 $a Abraham Lincoln, $b the prairie years /
$c by Carl Sandburg.
>> 245 00 $a Abraham Lincoln / $c by David D.
Anderson.
>>
>> Unless I'm misunderstanding the concept, I would
have expected the first 
>> search to return all 4 titles, and the second
search (with the position 
>> attribute) to only return the first two.
>>
>> Any help with this would be much appreciated. I run
both the client and 
>> server, so if it's possible to configure this at
all, I should be able 
>> to make it work.
> 
> There is a method to get 3=1 6=1 behavior from Zebra,
which offered by
> Olga Baranova (Olga.Baranovausu.ru).
> 
> The position of a field has not no effect in Zebra at
the moment, and an
> idea release 'first in field' via completeness
attribute (complete field
> 6=3) and truncation attributes. Need rewrite query like
> 
> a) if the truncation use in query:
> 
>         1=4 3=1 5=1 6=1  => \
>         1=4 3=1 5=1 6=3 
>         
> b) if the truncation not use in query:
> 
>         1=4 3=1 5=100 6=1 => \
>         or 1=4 3=1 5=100 6=3  1=4 3=1 4=1 5=101
6=3
>         {term #}
>         
> Here {term #} is term+' '+'#'.
> 
> So, the query we have to rewrite to
> 
> or 1=4 3=1 5=100 6=3  \
> 1=4 3=1 4=1 5=101 6=3 {lincoln #}
> 
> Best regards,
> Oleg
> 
> 
>> thank you,
>> John
>>
> 
> 
> _______________________________________________
> Yazlist mailing list
> Yazlistlists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
> 


-- 
John Durno
Coordinator, Information Technology Services
University of Victoria Libraries
PO Box 1800 STN CSC  Victoria, BC V8W 3H5
email: jdurnouvic.ca
phone: 250.472.5069
fax: 250.721.8215

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )