/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
/** \file client.c
static int scan_size = 20;
static char cur_host[200];
static Odr_int last_hit_count = 0;
-
static int pretty_xml = 0;
typedef enum {
struct yaz_facet_attr attr_values;
attr_values.errcode = 0;
attr_values.limit = -1;
- attr_values.useattr = 0;
+ attr_values.useattr = "NONE";
attr_values.relation = "default";
yaz_facet_attr_get_z_attributes(al, &attr_values);
if (!attr_values.errcode)
{
int term_index;
- printf(" %s (%d): \n", attr_values.useattr, /* attr_values.relation, attr_values.limit, */ facet->num_terms);
+ printf(" %s (%d): \n", attr_values.useattr, facet->num_terms);
for (term_index = 0 ; term_index < facet->num_terms; term_index++)
{
Z_FacetTerm *facetTerm = facet->terms[term_index];
printf("Number of hits: " ODR_INT_PRINTF "\n", *res->numberOfRecords);
if (res->facetList)
display_facets(res->facetList);
+ if (res->suggestions)
+ printf("Suggestions:\n%s\n", res->suggestions);
for (i = 0; i<res->num_records; i++)
handle_srw_record(res->records + i);
}