26 case 1: str =
"Less than";
break;
27 case 2: str =
"Less than or equal";
break;
28 case 3: str =
"Equal";
break;
29 case 4: str =
"Greater or equal";
break;
30 case 5: str =
"Greater than";
break;
31 case 6: str =
"Not equal";
break;
32 case 100: str =
"Phonetic";
break;
33 case 101: str =
"Stem";
break;
34 case 102: str =
"Relevance";
break;
35 case 103: str =
"AlwaysMatches";
break;
52 sprintf(str,
"relation=%s", rstr);
60 sprintf(str,
"position=First in field");
63 sprintf(str,
"position=First in any subfield");
66 sprintf(str,
"position=Any position in field");
69 sprintf(str,
"position");
76 sprintf(str,
"structure=Phrase");
79 sprintf(str,
"structure=Word");
82 sprintf(str,
"structure=Key");
85 sprintf(str,
"structure=Year");
88 sprintf(str,
"structure=Date");
91 sprintf(str,
"structure=Word list");
94 sprintf(str,
"structure=Date (un)");
97 sprintf(str,
"structure=Name (norm)");
100 sprintf(str,
"structure=Name (un)");
103 sprintf(str,
"structure=Structure");
106 sprintf(str,
"structure=urx");
109 sprintf(str,
"structure=free-form-text");
112 sprintf(str,
"structure=document-text");
115 sprintf(str,
"structure=local-number");
118 sprintf(str,
"structure=string");
121 sprintf(str,
"structure=numeric string");
124 sprintf(str,
"structure");
131 sprintf(str,
"truncation=Right");
134 sprintf(str,
"truncation=Left");
137 sprintf(str,
"truncation=Left&right");
140 sprintf(str,
"truncation=Do not truncate");
143 sprintf(str,
"truncation=Process #");
146 sprintf(str,
"truncation=re-1");
149 sprintf(str,
"truncation=re-2");
152 sprintf(str,
"truncation=CCL");
155 sprintf(str,
"truncation");
162 sprintf(str,
"completeness=Incomplete subfield");
165 sprintf(str,
"completeness=Complete subfield");
168 sprintf(str,
"completeness=Complete field");
171 sprintf(str,
"completeness");
186 const Odr_oid *ast,
int loglevel)
192 for (of = 0; of < num_attributes; of++)
195 const char *attset_name = 0;
205 switch (element->
which)
210 yaz_log(loglevel,
"%*.0s%s %s", depth,
"", attset_name, str);
220 yaz_log(loglevel,
"%*.0s string: '%s'", depth,
"",
230 yaz_log(loglevel,
"%.*s%s attribute unknown",
231 depth,
"", attset_name);
249 return "unknown complex operator";
264 const Odr_oid *ast,
int loglevel)
288 yaz_log(loglevel,
"%*.0s unknown complex", depth,
"");
303 yaz_log(loglevel,
"%*.0s term '%.*s' (general)", depth,
"",
308 yaz_log(loglevel,
"%*.0s term '%s' (string)", depth,
"",
313 "' (numeric)", depth,
"",
317 yaz_log(loglevel,
"%*.0s term (null)", depth,
"");
320 yaz_log(loglevel,
"%*.0s term (not general)", depth,
"");
326 yaz_log(loglevel,
"%*.0s set '%s'", depth,
"",
330 yaz_log(loglevel,
"%*.0s unknown simple structure", depth,
"");
333 yaz_log(loglevel,
"%*.0s unknown structure", depth,
"");
354 yaz_log(loglevel,
"%*.0s term '%.*s' (general)", depth,
"",
358 yaz_log(loglevel,
"%*.0s term (not general)", depth,
"");
void yaz_log(int level, const char *fmt,...)
Writes log message.
#define YLOG_LOG
log level: log (regular)
static const char * relToStr(Odr_int v)
void yaz_log_zquery(Z_Query *q)
void log_scan_term_level(int loglevel, Z_AttributesPlusTerm *zapt, const Odr_oid *ast)
void log_rpn_query(Z_RPNQuery *rpn)
void log_rpn_query_level(int loglevel, Z_RPNQuery *rpn)
const char * yaz_prox_unit_name(Z_ProximityOperator *op)
void yaz_log_zquery_level(int loglevel, Z_Query *q)
static char * complex_op_name(Z_Operator *op)
void log_scan_term(Z_AttributesPlusTerm *zapt, const Odr_oid *ast)
static void attrStr(Odr_int type, Odr_int value, char *str)
static void zlog_attributes(Z_AttributesPlusTerm *t, int depth, const Odr_oid *ast, int loglevel)
static void zlog_structure(Z_RPNStructure *zs, int depth, const Odr_oid *ast, int loglevel)
Header for Z39.50 Query Printing.
const char * yaz_oid_to_string_buf(const Odr_oid *oid, oid_class *oclass, char *buf)
maps any OID to string (named or dot-notation)
const char * z_ProxUnit_to_str(int u)
converts prox unit integer to string
Header for JSON functions.
union Z_AttributeElement::@50 value
Z_ComplexAttribute * complex
Z_AttributeSetId * attributeSet
Z_AttributeElement ** attributes
Z_AttributeList * attributes
Z_StringOrNumeric ** list
Z_InternationalString * cql
Z_ResultSetId * resultSetId
Z_AttributesPlusTerm * attributesPlusTerm
Z_ProximityOperator * prox
union Z_ProximityOperator::@51 u
Z_AttributeSetId * attributeSetId
Z_RPNStructure * RPNStructure
union Z_RPNStructure::@46 u
union Z_StringOrNumeric::@72 u
Z_InternationalString * string
Z_InternationalString * characterString
#define Z_AttributeValue_numeric
#define Z_Operator_and_not
#define Z_Term_characterString
#define Z_StringOrNumeric_numeric
#define Z_ProximityOperator_known
#define Z_AttributeValue_complex
#define Z_StringOrNumeric_string
#define Z_Operand_resultSetId
#define Z_RPNStructure_complex
#define Z_RPNStructure_simple