You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,6 @@ The API recognizes the following properties under the top-level `api` key in you
68
68
|`targets.layers_by_source` <br> `targets.source_aliases` <br> `targets.layer_aliases`|no | |custom values for which `sources` and `layers` the API accepts (See more info in the [Custom sources and layers](#custom-sources-and-layers) section below). We recommend using the `targets.auto_discover:true` configuration instead of setting these manually.
69
69
|`customBoosts`| no |`{}`| Allows configuring boosts for specific sources and layers, in order to influence result order. See [Configurable Boosts](#custom-boosts) below for details |
70
70
|`autocomplete.exclude_address_length`| no | 0 | As a performance optimization, this optional filter excludes results from the 'address' layer for any queries where the character length of the 'subject' portion of the parsed_text is equal to or less than this many characters in length. Addresses are usually the bulk of the records in Elasticsearch, and searching across all of them for very short text inputs can be slow, with little benefit. Consider setting this to 1 or 2 if you have several million addresses in Pelias. |
71
-
|`indexName`|*no*|*pelias*|name of the Elasticsearch index to be used when building queries|
72
71
|`attributionURL`|no| (autodetected)|The full URL to use for the attribution link returned in all Pelias responses. Pelias will attempt to autodetect this host, but it will often be incorrect if, for example, there is a proxy between Pelias and its users. This parameter allows setting a specific URL to avoid any such issues|
73
72
|`accessLog`|*no*||name of the format to use for access logs; may be any one of the [predefined values](https://github.com/expressjs/morgan#predefined-formats) in the `morgan` package. Defaults to `"common"`; if set to `false`, or an otherwise falsy value, disables access-logging entirely.|
74
73
|`relativeScores`|*no*|true|if set to true, confidence scores will be normalized, realistically at this point setting this to false is not tested or desirable
@@ -77,6 +76,12 @@ The API recognizes the following properties under the top-level `api` key in you
77
76
|`maxSize`|*no*|40| Allows configuring the maximum number of results a query can request.
78
77
|`defaultSize`|*no*|10| Allows configuring the number of results a query will request when a size wasn't specified. Must be greater than or equal to `minSize` and smaller than or equal to `maxSize`.
79
78
79
+
The API recognizes the following properties under the top-level `schema` key in your `pelias.json` config file:
80
+
81
+
|parameter|required|default|description|
82
+
|---|---|---|---|
83
+
|`indexName`|*no*|*pelias*|name of the Elasticsearch index to be used when building queries|
84
+
80
85
A good starting configuration file includes this section (fill in the service and Elasticsearch hosts as needed):
0 commit comments