Skip to content

Commit

Permalink
Justerer boost
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Oct 14, 2024
1 parent 15cd48c commit 809a57d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/app/(sok)/_components/searchResult/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { ReactElement } from "react";
import { BodyShort, Box, Heading } from "@navikt/ds-react";
import useQuery from "@/app/(sok)/_components/QueryProvider";
import joinStringWithSeperator from "@/app/_common/utils/joinStringWithSeperator";

interface DividerProps {
index: number;
Expand All @@ -26,8 +27,8 @@ export default function Divider({ index, score, indexOfLastWithScoreAboveThresho
Mindre relevante treff
</Heading>
<BodyShort>
Treffene under nevner likevel &laquo;
{query.getAll("q").join(", ")}&raquo; i annonseteksten
Treffene under nevner likevel <b>{joinStringWithSeperator(query.getAll("q"), "eller")}</b> i
annonseteksten
</BodyShort>
</Box>
)}
Expand Down
12 changes: 6 additions & 6 deletions src/app/(sok)/_utils/elasticSearchRequestBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,12 @@ function filterSector(sector) {

function mainQueryTemplateFunc(qAsArray) {
const matchFields = [
"category_name_no^2",
"title_no^1",
"keywords_no^0.8",
"searchtagsai_no^0.5",
"searchtags_no^0.3",
"geography_all_no^0.2",
"category_name_no",
"title_no",
"keywords_no",
"searchtagsai_no",
"searchtags_no",
"geography_all_no",
"adtext_no^0.2",
"employerdescription_no^0.1",
];
Expand Down

0 comments on commit 809a57d

Please sign in to comment.