int rank,
int sortkey_offset,
enum conf_metadata_mergekey mt,
- const char *facetrule)
+ const char *facetrule,
+ const char *limitmap)
{
assert(nmem && metadata && name);
metadata->sortkey_offset = sortkey_offset;
metadata->mergekey = mt;
metadata->facetrule = nmem_strdup_null(nmem, facetrule);
+ metadata->limitmap = nmem_strdup_null(nmem, limitmap);
}
int rank,
int sortkey_offset,
enum conf_metadata_mergekey mt,
- const char *facetrule)
+ const char *facetrule,
+ const char *limitmap
+ )
{
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, facetrule);
+ mt, facetrule, limitmap);
return md;
}
xmlChar *xml_rank = 0;
xmlChar *xml_setting = 0;
xmlChar *xml_mergekey = 0;
+ xmlChar *xml_limitmap = 0;
xmlChar *xml_icu_chain = 0;
struct _xmlAttr *attr;
for (attr = n->properties; attr; attr = attr->next)
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 "limitmap") &&
+ attr->children && attr->children->type == XML_TEXT_NODE)
+ xml_limitmap = attr->children->content;
else if (!xmlStrcmp(attr->name, BAD_CAST "facetrule") &&
attr->children && attr->children->type == XML_TEXT_NODE)
xml_icu_chain = attr->children->content;
(const char *) xml_name,
type, merge, setting,
brief, termlist, rank, sortkey_offset,
- mergekey_type, (const char *) xml_icu_chain);
+ mergekey_type, (const char *) xml_icu_chain, (const char *) xml_limitmap);
(*md_node)++;
return 0;
}