dkan
dkan copied to clipboard
Facet API is not picking up new fields
Steps To Reproduce
- Go to
admin/config/search/search-api/index/dkan/fields
- Click Add fields
- Add 'license' field and 'distribution__item__format' and save
- Rebuild tracking information, re-index, and clear cache
- Confirm you see the search_api.... tables for the new fields in your database
- Go to
api/1/search/facets
- Confirm the new fields are not displaying
Expected behavior
I expect the new fields to be available at this endpoint
Frontend steps once that is working:
- Edit
dkan/modules/metastore/modules/metastore_search/src/Service.php
line 234$facetsTypes = ['theme', 'keyword', 'publisher__name', 'license', 'distribution__item__format'];
- Edit
src/frontend/src/config/search.jsx
~line 33"distribution__item__format": { "label": "Format", "field": "distribution__item__format", "showAll": false, "limit": 10, "reset": { "active": false, "icon": <span></span> }, }, "license": { "label": "License", "field": "license", "showAll": false, "limit": 10, "reset": { "active": false, "icon": <span></span> },
- rebuild
Rewrite user story that describes interface that will be built.