X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fpazpar2_config.h;h=42e7c031ba29f1ea5451d43fa66afc107fe29f15;hb=f1200fd1cab4fa57feacd43046997ce2d23edbd5;hp=403ec163fab99d0dfc04024ab0f395f0f8ffaeb5;hpb=31babd0a7a0d4ee7091cfb740205ab6fe1c89ae5;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2_config.h b/src/pazpar2_config.h index 403ec16..42e7c03 100644 --- a/src/pazpar2_config.h +++ b/src/pazpar2_config.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2012 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -24,9 +24,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#include #include "charsets.h" #include "http.h" #include "database.h" +#include "host.h" enum conf_metadata_type { Metadata_type_generic, // Generic text field @@ -72,9 +74,7 @@ struct conf_metadata char *name; // The field name. Output by normalization stylesheet int brief; // Is this element to be returned in the brief format? int termlist;// Is this field to be treated as a termlist for browsing? - int rank; // Rank factor. 0 means don't use this field for ranking, - // 1 is default - // values >1 give additional significance to a field + const char *rank; int sortkey_offset; // -1 if it's not a sortkey, otherwise index // into service/record_cluster->sortkey array enum conf_metadata_type type; @@ -82,6 +82,8 @@ struct conf_metadata enum conf_setting_type setting; // Value is to be taken from session/db settings? enum conf_metadata_mergekey mergekey; char *facetrule; + + char *limitmap; // Should be expanded into service-wide default e.g. pz:limitmap:=value setting }; @@ -107,12 +109,14 @@ struct conf_service int num_sortkeys; struct conf_sortkey *sortkeys; struct setting_dictionary *dictionary; + struct settings_array *settings; struct conf_service *next; char *id; NMEM nmem; int session_timeout; int z3950_session_timeout; int z3950_operation_timeout; + int rank_cluster; int ref_count; /* duplicated from conf_server */ @@ -120,6 +124,7 @@ struct conf_service struct service_xslt *xslt_list; + CCL_bibset ccl_bibset; struct database *databases; struct conf_server *server; };