List Info

Thread: Same attributes, different order




Same attributes, different order
user name
2006-03-10 03:02:53
 
Our ZServer is written using YAZ toolkit 2.0.19 and have had the following
problem reported:
 
In constructing queries for the Z server, I have found that the order of 
attributes is important.  For example, the following query works:
 
f attrset bib-1 attr 3=3 attr 4=2 attr 2=3 attr 1=1016 "test"
 
I get 181 results.
 
But, the following query returns 0 results and no errors:
 
f attrset bib-1 attr 4=2 attr 3=3 attr 1=1016 attr 2=3 "test"
 
Same attributes, different order.
any ideas??
 
Same attributes, different order
user name
2006-03-10 03:15:33
Hi Brendon,

The YAZ toolkit doesn't (shouldn't) have any  impact on
how the query is 
interpreted. If this is a server that has been created by
your 
organization, I would say start your debugging at the point
where the 
attributesPlusTerm structure is interpreted, and try to
determine why 
you get different outcomes depending on the order. If the
toolkit does 
something nasty to the query, that's certainly a bug, but
not one I've 
heard of before.

Best regards,

--Sebastian

Brendon Weir wrote:

>  
> Our ZServer is written using YAZ toolkit 2.0.19 and
have had the following
> problem reported:
>  
> In constructing queries for the Z server, I have found
that the order of 
> attributes is important.  For example, the following
query works:
>  
> f attrset bib-1 attr 3=3 attr 4=2 attr 2=3
attr
1=1016 "test"
>  
> I get 181 results.
>  
> But, the following query returns 0 results and no
errors:
>  
> f attrset bib-1 attr 4=2 attr 3=3 attr
1=1016 attr 2=3 "test"
>  
> Same attributes, different order.
> any ideas??
>  
>
>--------------------------------------------------------
----------------
>
>_______________________________________________
>Yazlist mailing list
>Yazlistlists.indexdata.dk
>http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
>  
>

-- 
Sebastian Hammer, Index Data
quinnindexdata.com   www.indexdata.com
Ph: (603) 209-6853


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

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