int rank,
int sortkey_offset,
enum conf_metadata_mergekey mt,
- const char *icu_chain)
+ const char *facetrule)
{
assert(nmem && metadata && name);
metadata->rank = rank;
metadata->sortkey_offset = sortkey_offset;
metadata->mergekey = mt;
- metadata->icu_chain = nmem_strdup_null(nmem, icu_chain);
+ metadata->facetrule = nmem_strdup_null(nmem, facetrule);
}
int rank,
int sortkey_offset,
enum conf_metadata_mergekey mt,
- const char *icu_chain)
+ const char *facetrule)
{
struct conf_metadata * md = 0;
md = service->metadata + field_id;
conf_metadata_assign(service->nmem, md, name, type, merge, setting,
brief, termlist, rank, sortkey_offset,
- mt, icu_chain);
+ mt, facetrule);
return md;
}
else if (!xmlStrcmp(attr->name, BAD_CAST "mergekey") &&
attr->children && attr->children->type == XML_TEXT_NODE)
xml_mergekey = attr->children->content;
- else if (!xmlStrcmp(attr->name, BAD_CAST "icu_chain") &&
+ else if (!xmlStrcmp(attr->name, BAD_CAST "facetrule") &&
attr->children && attr->children->type == XML_TEXT_NODE)
xml_icu_chain = attr->children->content;
else
for (i = 0; i < service->num_metadata; i++)
if (!strcmp((service->metadata + i)->name, type))
- icu_chain_id = (service->metadata + i)->icu_chain;
+ icu_chain_id = (service->metadata + i)->facetrule;
yaz_log(YLOG_LOG, "icu_chain id=%s", icu_chain_id ? icu_chain_id : "null");
if (!icu_chain_id)
<metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"
termlist="yes"/>
<metadata name="author" brief="yes" termlist="yes"
- merge="longest" rank="2" icu_chain="mychain"/>
+ merge="longest" rank="2" facetrule="mychain"/>
<metadata name="subject" merge="unique" termlist="yes" rank="3"/>
<metadata name="id"/>
<metadata name="lccn" merge="unique"/>