[Yazlist] Malformed query. Missing Structure attribute

Eric Bégin Eric.Begin at inLibro.com
Fri Feb 6 04:17:19 CET 2009


Great Mike!

I added add s=1 for using a phrase strucute for my field mappings 
located in the .xml file and this works fine.

<set name="pz:cclmap:ti" value="u=4 s=al s=1 t=b"/>

Is there a way to set pass this value at the query level?  Let's say I'd 
like to let the user set the type of structure attribute he wants to use?

Eric

Mike Taylor wrote:
> Eric Bégin writes:
>  > Hi folks,
>  > 
>  > I do have a problem on a specific server when I'm doing a search using 
>  > Pazpar2 (or any z3950 client).
>  > 
>  > This looks to be specific to that server.
>  > 
>  > catalogue.banq.qc.ca:210/IRIS
>  > 
>  > Doing a search for 'potter' as title returns in the log
>  > 
>  > [log] SearchRequest catalogue.banq.qc.ca:210/IRIS iso-8859-1 RPN 
>  > @attrset Bib-1 @attr 1=4 potter
>  > [warn] Search response NSD catalogue.banq.qc.ca:210/IRIS: Bib-1 108 
>  > Malformed query -- v3 addinfo 'Malformed query. Missing Structure attribute'
>  > 
>  > First I though that the server was messed up, but since querying this 
>  > server using the http//loc.gov/z3950/test.html page is working, I'm a 
>  > little confuse.
>  > 
>  > Any suggestions will be appreciated.
>
> Like it says, this server wants an explicit structure attribute to be
> specified.  For example, you could send @attr 4=1, which means
> structure=phrase:
>
> mike at rafa:~$ yaz-client catalogue.banq.qc.ca:210/IRIS
> Connecting...OK.
> Sent initrequest.
> Connection accepted by v3 target.
> ID     : 661110 
> Name   : BiblioMondo Zserver
> Version: 2.00
> Options: search present delSet scan namedResultSets
> Elapsed: 0.517398
> Z> find @attr 1=4 potter
> Sent searchRequest.
> Received SearchResponse.
> Search was a bloomin' failure.
> Number of hits: 0, setno 1
> records returned: 1
> Diagnostic message(s) from database:
> Unknown diagset: Bib-1
>     [108] Malformed query -- v3 addinfo 'Malformed query. Missing Structure attribute'
> Elapsed: 0.120520
> Z> find @attr 1=4 @attr 4=1 potter
> Sent searchRequest.
> Received SearchResponse.
> Search was a success.
> Number of hits: 309, setno 2
> records returned: 0
> Elapsed: 0.137094
> Z> 
>
>  _/|_	 ___________________________________________________________________
> /o ) \/  Mike Taylor    <mike at indexdata.com>    http://www.miketaylor.org.uk
> )_v__/\  "Never send a capitalist to do an activist's job.  The results
> 	 will disappoint you every time" -- Jean-Michel Smith.
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>
>   




More information about the Yazlist mailing list