Skip to content

Commit

Permalink
Merge pull request #1029 from SlovakNationalGallery/MG-118
Browse files Browse the repository at this point in the history
MG-118: Filterable items by location.tree
  • Loading branch information
rastislav-chynoransky authored Nov 21, 2024
2 parents ea8e215 + fda59c6 commit 686746c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/V1/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ItemController extends Controller
'exhibition',
'box',
'location',
'location.tree',
];

private $rangeables = ['date_earliest', 'date_latest', 'additionals.order'];
Expand Down
6 changes: 6 additions & 0 deletions config/elasticsearch/mapping/items.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@
],
'location' => [
'type' => 'keyword',
'fields' => [
'tree' => [
'type' => 'text',
'analyzer' => 'tree_analyzer',
],
],
],
'frontend' => [
'type' => 'keyword',
Expand Down

0 comments on commit 686746c

Please sign in to comment.