pazpar2  1.13.0
Data Structures | Macros | Functions
settings.h File Reference

Go to the source code of this file.

Data Structures

struct  setting
 
struct  database
 
struct  settings_array
 

Macros

#define PZ_PIGGYBACK   0
 
#define PZ_ELEMENTS   1
 
#define PZ_REQUESTSYNTAX   2
 
#define PZ_CCLMAP   3
 
#define PZ_XSLT   4
 
#define PZ_NATIVESYNTAX   5
 
#define PZ_AUTHENTICATION   6
 
#define PZ_ALLOW   7
 
#define PZ_MAXRECS   8
 
#define PZ_ID   9
 
#define PZ_NAME   10
 
#define PZ_QUERYENCODING   11
 
#define PZ_ZPROXY   12
 
#define PZ_APDULOG   13
 
#define PZ_SRU   14
 
#define PZ_SRU_VERSION   15
 
#define PZ_PQF_PREFIX   16
 
#define PZ_SORT   17
 
#define PZ_RECORDFILTER   18
 
#define PZ_PQF_STRFTIME   19
 
#define PZ_NEGOTIATION_CHARSET   20
 
#define PZ_MAX_CONNECTIONS   21
 
#define PZ_REUSE_CONNECTIONS   22
 
#define PZ_TERMLIST_TERM_FACTOR   23
 
#define PZ_TERMLIST_TERM_COUNT   24
 
#define PZ_PREFERRED   25
 
#define PZ_EXTRA_ARGS   26
 
#define PZ_QUERY_SYNTAX   27
 
#define PZ_FACETMAP   28
 
#define PZ_LIMITMAP   29
 
#define PZ_URL   30
 
#define PZ_SORTMAP   31
 
#define PZ_PRESENT_CHUNK   32
 
#define PZ_BLOCK_TIMEOUT   33
 
#define PZ_EXTENDRECS   34
 
#define PZ_AUTHENTICATION_MODE   35
 
#define PZ_NATIVE_SCORE   36
 
#define PZ_MEMCACHED   37
 
#define PZ_REDIS   38
 
#define PZ_TIMEOUT   39
 
#define PZ_MAX_EOF   40
 

Functions

int settings_read_file (struct conf_service *service, const char *path, int pass)
 
int settings_read_node (struct conf_service *service, xmlNode *n, int pass)
 
int settings_num (struct conf_service *service)
 
int settings_create_offset (struct conf_service *service, const char *name)
 
int settings_lookup_offset (struct conf_service *service, const char *name)
 
void init_settings (struct conf_service *service)
 
int settings_read_node_x (xmlNode *n, void *client_data, void(*fun)(void *client_data, struct setting *set))
 
void expand_settings_array (struct setting ***set_ar, int *num, int offset, NMEM nmem)
 

Macro Definition Documentation

#define PZ_ALLOW   7

Definition at line 30 of file settings.h.

Referenced by session_grep_databases().

#define PZ_APDULOG   13

Definition at line 36 of file settings.h.

Referenced by connection_connect().

#define PZ_AUTHENTICATION   6

Definition at line 29 of file settings.h.

Referenced by connection_connect().

#define PZ_AUTHENTICATION_MODE   35

Definition at line 58 of file settings.h.

Referenced by connection_connect().

#define PZ_BLOCK_TIMEOUT   33

Definition at line 56 of file settings.h.

#define PZ_CCLMAP   3

Definition at line 26 of file settings.h.

Referenced by prepare_cclmap().

#define PZ_ELEMENTS   1

Definition at line 24 of file settings.h.

Referenced by client_fetch_more(), client_send_raw_present(), and client_start_search().

#define PZ_EXTENDRECS   34

Definition at line 57 of file settings.h.

Referenced by client_fetch_more().

#define PZ_EXTRA_ARGS   26

Definition at line 49 of file settings.h.

Referenced by client_start_search().

#define PZ_FACETMAP   28

Definition at line 51 of file settings.h.

Referenced by client_has_facet(), client_report_facets(), and client_set_facets_request().

#define PZ_ID   9

Definition at line 32 of file settings.h.

Referenced by match_criterion(), and new_database_inherit_settings().

#define PZ_LIMITMAP   29

Definition at line 52 of file settings.h.

Referenced by apply_limit(), and client_get_facet_limit_local().

#define PZ_MAX_CONNECTIONS   21

Definition at line 44 of file settings.h.

#define PZ_MAX_EOF   40

Definition at line 63 of file settings.h.

Referenced by new_database_inherit_settings(), and service_init().

#define PZ_MAXRECS   8

Definition at line 31 of file settings.h.

Referenced by client_start_search().

#define PZ_MEMCACHED   37

Definition at line 60 of file settings.h.

Referenced by connection_connect().

#define PZ_NAME   10

Definition at line 33 of file settings.h.

Referenced by hitsbytarget_nb(), session_grep_databases(), and write_subrecord().

#define PZ_NATIVE_SCORE   36

Definition at line 59 of file settings.h.

Referenced by findnorm().

#define PZ_NATIVESYNTAX   5

Definition at line 28 of file settings.h.

Referenced by client_record_ingest(), and client_show_raw_begin().

#define PZ_NEGOTIATION_CHARSET   20

Definition at line 43 of file settings.h.

Referenced by connection_connect().

#define PZ_PIGGYBACK   0

Definition at line 23 of file settings.h.

Referenced by client_start_search().

#define PZ_PQF_PREFIX   16

Definition at line 39 of file settings.h.

Referenced by client_parse_query().

#define PZ_PQF_STRFTIME   19

Definition at line 42 of file settings.h.

Referenced by client_parse_query().

#define PZ_PREFERRED   25

Definition at line 48 of file settings.h.

Referenced by client_start_search().

#define PZ_PRESENT_CHUNK   32

Definition at line 55 of file settings.h.

Referenced by client_start_search().

#define PZ_QUERY_SYNTAX   27

Definition at line 50 of file settings.h.

Referenced by client_parse_query().

#define PZ_QUERYENCODING   11

Definition at line 34 of file settings.h.

Referenced by client_start_search().

#define PZ_RECORDFILTER   18

Definition at line 41 of file settings.h.

Referenced by check_record_filter().

#define PZ_REDIS   38

Definition at line 61 of file settings.h.

Referenced by connection_connect().

#define PZ_REQUESTSYNTAX   2
#define PZ_REUSE_CONNECTIONS   22

Definition at line 45 of file settings.h.

#define PZ_SORT   17

Definition at line 40 of file settings.h.

Referenced by client_start_search().

#define PZ_SORTMAP   31

Definition at line 54 of file settings.h.

Referenced by get_strategy_plus_sort().

#define PZ_SRU   14

Definition at line 37 of file settings.h.

Referenced by client_parse_query(), client_start_search(), and connection_connect().

#define PZ_SRU_VERSION   15

Definition at line 38 of file settings.h.

Referenced by connection_connect().

#define PZ_TERMLIST_TERM_COUNT   24

Definition at line 47 of file settings.h.

#define PZ_TERMLIST_TERM_FACTOR   23

Definition at line 46 of file settings.h.

Referenced by ingest_to_cluster().

#define PZ_TIMEOUT   39

Definition at line 62 of file settings.h.

Referenced by client_start_search().

#define PZ_URL   30

Definition at line 53 of file settings.h.

Referenced by client_prep_connection().

#define PZ_XSLT   4

Definition at line 27 of file settings.h.

Referenced by prepare_map(), and session_apply_setting().

#define PZ_ZPROXY   12

Definition at line 35 of file settings.h.

Referenced by client_prep_connection().

Function Documentation

void expand_settings_array ( struct setting ***  set_ar,
int *  num,
int  offset,
NMEM  nmem 
)

Definition at line 336 of file settings.c.

References setting_dictionary::num.

Referenced by session_apply_setting(), and update_database_fun().

void init_settings ( struct conf_service service)
int settings_create_offset ( struct conf_service service,
const char *  name 
)
int settings_lookup_offset ( struct conf_service service,
const char *  name 
)
int settings_num ( struct conf_service service)

Definition at line 107 of file settings.c.

int settings_read_file ( struct conf_service service,
const char *  path,
int  pass 
)
int settings_read_node ( struct conf_service service,
xmlNode *  n,
int  pass 
)
int settings_read_node_x ( xmlNode *  n,
void *  client_data,
void(*)(void *client_data, struct setting *set)  fun 
)