forked from 0x2620/pandora
string layers are facets too, to fix exact matches
This commit is contained in:
parent
bd72abae6e
commit
81aa990988
1 changed files with 4 additions and 0 deletions
|
@ -1458,6 +1458,10 @@ for key in settings.CONFIG['itemKeys']:
|
|||
if 'autocomplete' in key and not 'autocompleteSortKey' in key or \
|
||||
key.get('filter'):
|
||||
Item.facet_keys.append(key['id'])
|
||||
elif key.get('type') == 'layer' and \
|
||||
utils.get_by_id(settings.CONFIG['layers'], key['id']).get('type') == 'string':
|
||||
Item.facet_keys.append(key['id'])
|
||||
|
||||
|
||||
Item.person_keys = []
|
||||
for key in settings.CONFIG['itemKeys']:
|
||||
|
|
Loading…
Reference in a new issue