Skip to content

Commit

Permalink
fix: related words use OR
Browse files Browse the repository at this point in the history
Fixes #401
  • Loading branch information
arildm committed Oct 9, 2024
1 parent 751cc61 commit efd3676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Searching by pressing Enter in Simple search is broken [#394](https://github.com/spraakbanken/korp-frontend/issues/394)
- Barcode (aka hitsPicture) sometimes missing from KWIC tab [#395](https://github.com/spraakbanken/korp-frontend/issues/395)
- Error when loading with restricted corpora selected [#398](https://github.com/spraakbanken/korp-frontend/issues/398)
- Related words lookup must use OR [#401](https://github.com/spraakbanken/korp-frontend/issues/401)

## [9.7.1] - 2024-09-18

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/services/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ angular.module("korpApp").factory("lexicons", [
url: `${karpURL}/query/swefn`,
method: "GET",
params: {
q: "and(" + _.map(data.hits, (sense) => `equals|LUs|${sense}`).join("||") + ")",
q: "or(" + _.map(data.hits, (sense) => `equals|LUs|${sense}`).join("||") + ")",
path: "entry",
},
}).then(({ data }) => {
Expand Down

0 comments on commit efd3676

Please sign in to comment.