Skip to content

Commit

Permalink
Merge pull request #458 from NYPL/SCC-4477/tableOfContents
Browse files Browse the repository at this point in the history
add genreform to key word search scope
  • Loading branch information
charmingduchess authored Feb 6, 2025
2 parents 7d9d37b + c70c155 commit e0a923c
Show file tree
Hide file tree
Showing 8 changed files with 44,107 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elasticsearch/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const SEARCH_SCOPES = {
'titleDisplay.folded',
'contentsTitle.folded',
'tableOfContents.folded',
'genreForm',
'donor.folded',
'parallelTitle.folded^5',
'parallelTitleDisplay.folded',
Expand All @@ -45,7 +46,6 @@ const SEARCH_SCOPES = {
'titleDisplay.folded',
'seriesStatement.folded',
'contentsTitle.folded',
'tableOfContents.folded',
'donor.folded',
'parallelTitle.folded^5',
'parallelTitleDisplay.folded',
Expand Down
18 changes: 18 additions & 0 deletions test/fixtures/query-30fa9978a3de9d1d665b329a9ad2bef6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"took": 58,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 0,
"relation": "eq"
},
"max_score": null,
"hits": []
}
}
Loading

0 comments on commit e0a923c

Please sign in to comment.