|
| 1 | +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
| 2 | +# __ # |
| 3 | +# .-----.---.-.-----.| | # |
| 4 | +# | _ | _ | || | # |
| 5 | +# | __|___._|__|__||__| # |
| 6 | +# |__| ... .-.. # |
| 7 | +# # |
| 8 | +# ~ ~ ~ * ~ ~ ~ # |
| 9 | +# # |
| 10 | +# PANL/SOLR SERVER CONNECTION CONFIGURATION # |
| 11 | +# --------- ------ ---------- ------------- # |
| 12 | +# # |
| 13 | +# This is the Panl configuration file which configures the base functionality # |
| 14 | +# and defines how Panl will connect to the Solr server. # |
| 15 | +# # |
| 16 | +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
| 17 | + |
| 18 | +# Which Solr Client To Use |
| 19 | +# ----- ---- ------ -- --- |
| 20 | +# Choose the correct SolrJ client for the Solr installation that you require, |
| 21 | +# by default, it is the CloudSolrClient. |
| 22 | +# |
| 23 | +# NOTE: What the solr.search.server.url will be will depend on the client that |
| 24 | +# you choose. The SolrJ client __MUST__ be one of |
| 25 | +# |
| 26 | +# - HttpSolrClient |
| 27 | +# - LBHttpSolrClient |
| 28 | +# - CloudSolrClient |
| 29 | +# |
| 30 | +# By default - we will be using the CloudSolrClient as it works with the |
| 31 | +# example instructions for spinning up a test solr instance |
| 32 | +# |
| 33 | +# ~ ~ ~ * ~ ~ ~ |
| 34 | + |
| 35 | +solrj.client=HttpSolrClient |
| 36 | +#solrj.client=LBHttpSolrClient |
| 37 | +#solrj.client=CloudSolrClient |
| 38 | + |
| 39 | +# Which Solr URLs To Connect To |
| 40 | +# ----- ---- ---- -- ------- -- |
| 41 | +# Dependent on which Solr server installation you have, and consequently the |
| 42 | +# SolrJ Client that is configured, this will either be a single url, or a comma |
| 43 | +# separated list of URLs |
| 44 | +# |
| 45 | +# solr.search.server.url - the search server URL to connect to which must |
| 46 | +# NOT include the core that it is connecting to - this will be taken |
| 47 | +# care of by the Panl request mechanism. |
| 48 | +# |
| 49 | +# NOTE: that if you are using connector that has multiple URLs, then |
| 50 | +# they MUST be comma separated. |
| 51 | +# |
| 52 | +# NOTE: If you are using the CloudSolrClient as a connector and you wish to |
| 53 | +# use the zookeeper URLs, then you __MUST__ prefix the URLs with |
| 54 | +# |
| 55 | +# zookeeper: |
| 56 | +# |
| 57 | +# The below property would then become: |
| 58 | +# |
| 59 | +# solr.search.server.url=zookeeper:localhost:9983 |
| 60 | +# |
| 61 | +# ~ ~ ~ * ~ ~ ~ |
| 62 | + |
| 63 | +solr.search.server.url=http://localhost:8983/solr |
| 64 | + |
| 65 | +# Whether To Enable The Testing URLs |
| 66 | +# ------- -- ------ --- ------- ---- |
| 67 | +# The Panl results viewer / explainer URLs, this is a simple web app which will |
| 68 | +# allow you to test and explain the collections and the URLs that are |
| 69 | +# generated, including fields, faceting, querying, sorting, and results. |
| 70 | +# |
| 71 | +# If this property does not exist, or if it is set to false, then no results |
| 72 | +# viewer /explainer will be available. You may wish to remove this property |
| 73 | +# for production (or perhaps just disallow access to it). |
| 74 | +# |
| 75 | +# The URI paths are __ALWAYS__ |
| 76 | +# /panl-results-viewer/ - for testing the queries, facets, and results |
| 77 | +# /panl-results-explainer/ - for explaining LPSE encoded URIs and describing |
| 78 | +# the configuration for the Panl server. |
| 79 | +# |
| 80 | +# ~ ~ ~ * ~ ~ ~ |
| 81 | + |
| 82 | +panl.results.testing.urls=true |
| 83 | + |
| 84 | +# Whether To Enable Verbose Error Messaging |
| 85 | +# ------- -- ------ ------- ----- --------- |
| 86 | +# Whether verbose messaging is turned on for the error (404 / 500) http status |
| 87 | +# messages. Verbose messaging for the 404 error will provide valid URI paths |
| 88 | +# to connect to. Verbose messaging for the 500 error will provide a |
| 89 | +# stacktrace. |
| 90 | +# |
| 91 | +# The recommendation is to set both of these properties to false to reduce the |
| 92 | +# possibility of information leakage. |
| 93 | +# |
| 94 | +# ~ ~ ~ * ~ ~ ~ |
| 95 | + |
| 96 | +panl.status.404.verbose=true |
| 97 | +panl.status.500.verbose=true |
| 98 | + |
| 99 | +# Decimal Values Format |
| 100 | +# ------- ------ ------ |
| 101 | +# Whether decimal values use a decimal point or a decimal comma. For example |
| 102 | +# The number |
| 103 | +# |
| 104 | +# 1,234,567.89 |
| 105 | +# |
| 106 | +# uses the decimal point '.' as the separator between the integer and the |
| 107 | +# fractional part, whereas the number |
| 108 | +# |
| 109 | +# 1.234.567,89 |
| 110 | +# |
| 111 | +# uses the decimal comma ',' as the separator between the integer and the |
| 112 | +# fractional part. |
| 113 | +# |
| 114 | +# The default for the Panl server is to use the decimal point, should you wish |
| 115 | +# to change this, set the property below to false to use the decimal comma |
| 116 | +# character for decimal values. |
| 117 | +# |
| 118 | +# ~ ~ ~ * ~ ~ ~ |
| 119 | + |
| 120 | +panl.decimal.point=true |
| 121 | + |
| 122 | + |
| 123 | +# Remove Un-needed JSON Keys |
| 124 | +# ------ --------- ---- ---- |
| 125 | +# Set this property to true is you do not require information in the JSON |
| 126 | +# response object. This will remove the JSON keys from the response: |
| 127 | +# |
| 128 | +# - facet_counts |
| 129 | +# - responseHeader.params |
| 130 | +# |
| 131 | +# If you are starting from a fresh implementation without any legacy use of the |
| 132 | +# original Solr response object, then this is safe to set to 'true' |
| 133 | +# |
| 134 | +# ~ ~ ~ * ~ ~ ~ |
| 135 | + |
| 136 | +panl.remove.solr.json.keys=false |
| 137 | + |
| 138 | +# Add 'extra' Information To Every Response |
| 139 | +# --- ------- ----------- -- ----- -------- |
| 140 | +# This property __MUST__ be a valid JSON object and will be added to every |
| 141 | +# response from the Panl server. It will be added to the JSON response object |
| 142 | +# under the panl.extra JSON key. |
| 143 | +# |
| 144 | +# You may also add an 'extra' JSON object to each of the collections, with the |
| 145 | +# panl.extra JSON key which will override any keys in this JSON object. |
| 146 | +# |
| 147 | +# IMPORTANT: |
| 148 | +# |
| 149 | +# - If this is not a valid JSON object, then the server will error and fail |
| 150 | +# to start. |
| 151 | +# - These values may be overwritten by the panl.collection.extra property in |
| 152 | +# the individual <panl_collection_url>.panl.properties files |
| 153 | +# - You may remove this property or leave it blank and it will have no effect |
| 154 | +# and will not be included in the Panl JSON Response |
| 155 | +# |
| 156 | +# ~ ~ ~ * ~ ~ ~ |
| 157 | + |
| 158 | +panl.server.extra= |
| 159 | + |
| 160 | +# Collection Property File Inclusion |
| 161 | +# ---------- -------- ---- --------- |
| 162 | +# Each property file defines a singular collection, with the associated |
| 163 | +# properties and configuration. The format of the property is: |
| 164 | +# |
| 165 | +# panl.collection.<solr_collection_name>=<properties_file_location> |
| 166 | +# |
| 167 | +# Where: |
| 168 | +# <solr_collection_name> is the collection to query on the Solr server |
| 169 | +# <properties_file_location> is the relative location __FROM__ this file |
| 170 | +# (i.e. the panl.properties file). The format of |
| 171 | +# the filename is: |
| 172 | +# |
| 173 | +# <panl_collection_uri>.panl.properties |
| 174 | +# |
| 175 | +# Where: |
| 176 | +# <panl_collection_uri> is the base URI path that the Panl server will |
| 177 | +# respond to, i.e. it will be bound to the Panl URL |
| 178 | +# of http://localhost:port/<panl_collection_uri> |
| 179 | +# |
| 180 | +# NOTE: You may have multiple <panl_collection_uri> values for each |
| 181 | +# <solr_collection_name> with different fieldset configurations |
| 182 | +# |
| 183 | +# ~ ~ ~ * ~ ~ ~ |
| 184 | + |
| 185 | +panl.collection.mechanical-pencils=mechanical-pencils.panl.properties |
0 commit comments