Add code comments about restriction tha this can't be used with origin

This commit is contained in:
Jenni Nurmi 2019-07-09 15:25:03 +03:00 committed by Vesa Luusua
parent 2485b46b30
commit 3242f01146
2 changed files with 5 additions and 0 deletions

View file

@ -22,6 +22,8 @@ const i18n = {
// Should search results be ordered by distance to origin.
// NOTE: If this is set to true add parameter 'origin' to every location in default-location-searches.js
// Without the 'origin' parameter, search will not work correctly
// NOTE: Keyword search and ordering search results by distance can't be used at the same time. You can turn keyword
// search off by changing the keywordFilterConfig parameter active to false in marketplace-custom-config.js
const sortSearchByDistance = false;
// API supports custom processes to be used in booking process.

View file

@ -58,6 +58,9 @@ export const dateRangeFilterConfig = {
};
// Activate keyword filter on search page
// NOTE: If you are ordering search results by distance the keyword search can't be used at the same time.
// You can turn off ordering by distance in config.js file
export const keywordFilterConfig = {
active: true,
};