X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fpazpar2_config.h;h=1cad37a153ecd97338dd56bbc3d0010665e1450e;hb=018fbd9f5f6729d8488ba808da700df30fbb9711;hp=692d260f68f0702f20f4b7016226574e586630f2;hpb=ddf205cd55f6992a7768ffbb561b2cf35b0aa74a;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2_config.h b/src/pazpar2_config.h index 692d260..1cad37a 100644 --- a/src/pazpar2_config.h +++ b/src/pazpar2_config.h @@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#include #include "charsets.h" #include "http.h" #include "database.h" @@ -68,14 +69,12 @@ enum conf_metadata_mergekey { // An array of these structure provides a 'map' against which // discovered metadata elements are matched. It also governs storage, // to minimize number of cycles needed at various tages of processing -struct conf_metadata +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; @@ -85,7 +84,6 @@ struct conf_metadata char *facetrule; char *limitmap; // Should be expanded into service-wide default e.g. pz:limitmap:=value setting - char *facetmap; // Should be expanded into service-wide default e.g. pz:facetmap:=value setting }; @@ -118,6 +116,8 @@ struct conf_service int session_timeout; int z3950_session_timeout; int z3950_operation_timeout; + int rank_cluster; + char *default_sort; int ref_count; /* duplicated from conf_server */ @@ -125,6 +125,7 @@ struct conf_service struct service_xslt *xslt_list; + CCL_bibset ccl_bibset; struct database *databases; struct conf_server *server; };