YAZ  5.23.1
Data Structures | Functions
facet.h File Reference

Header for the facet utilities. More...

#include <yaz/yconfig.h>
#include <yaz/odr.h>
#include <yaz/z-core.h>
#include <yaz/z-facet-1.h>
#include <yaz/log.h>

Go to the source code of this file.

Data Structures

struct  yaz_facet_attr


void yaz_facet_attr_init (struct yaz_facet_attr *attr_values)
void yaz_facet_attr_get_z_attributes (const Z_AttributeList *attributes, struct yaz_facet_attr *av)
Z_FacetTermfacet_term_create_cstr (ODR odr, const char *cstr, Odr_int freq)
Z_FacetFieldfacet_field_create (ODR odr, Z_AttributeList *attributes, int num_terms)
void facet_field_term_set (ODR odr, Z_FacetField *field, Z_FacetTerm *facetTerm, int index)
Z_FacetListfacet_list_create (ODR odr, int num_facets)
void facet_list_field_set (ODR odr, Z_FacetList *list, Z_FacetField *field, int index)
void yaz_oi_set_facetlist (Z_OtherInformation **otherInformation, ODR odr, Z_FacetList *facet_list)
Z_FacetListyaz_oi_get_facetlist (Z_OtherInformation **otherInformation)

Detailed Description

Header for the facet utilities.

Definition in file facet.h.

Function Documentation

Z_FacetField* facet_field_create ( ODR  odr,
Z_AttributeList attributes,
int  num_terms 
void facet_field_term_set ( ODR  odr,
Z_FacetField field,
Z_FacetTerm facetTerm,
int  index 

Definition at line 208 of file facet.c.

References Z_FacetField::terms.

Referenced by addterms(), yaz_solr_decode_facet_field(), and yaz_sru_proxy_decode_facet_field().

Z_FacetList* facet_list_create ( ODR  odr,
int  num_facets 
void facet_list_field_set ( ODR  odr,
Z_FacetList list,
Z_FacetField field,
int  index 

Definition at line 224 of file facet.c.

References Z_FacetList::elements.

Referenced by yaz_solr_decode_facet_counts(), and yaz_sru_proxy_decode_facets().

Z_FacetTerm* facet_term_create_cstr ( ODR  odr,
const char *  cstr,
Odr_int  freq 
void yaz_facet_attr_get_z_attributes ( const Z_AttributeList attributes,
struct yaz_facet_attr av 
void yaz_facet_attr_init ( struct yaz_facet_attr attr_values)
Z_FacetList* yaz_oi_get_facetlist ( Z_OtherInformation **  otherInformation)
void yaz_oi_set_facetlist ( Z_OtherInformation **  otherInformation,
ODR  odr,
Z_FacetList facet_list