From ad5c9833e618e2b1857851dbbb56e03c7cae209b Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 8 Oct 2022 14:49:04 +0400 Subject: [PATCH] fixed elastic --- .../components/WebsiteCard/WebsiteCard.tsx | 28 +++++++++++-------- .../services/modules/elastic/index.ts | 2 +- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx b/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx index aec2fee..f0a96b4 100644 --- a/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx +++ b/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx @@ -1,17 +1,23 @@ -import { cleanUrlForUi } from 'app/core/helpers/common'; -import s from './styles.module.css' +import { cleanUrlForUi } from "app/core/helpers/common" +import s from "./styles.module.css" interface Props { - url: string; - title: string; - description: string; + url: string + title: string + description: string } -const WebsiteCard = (props:Props) => { - return
- {props.title} - {cleanUrlForUi(props.url)} -
{props.description}
+const WebsiteCard = (props: Props) => { + return ( +
+ + {props.title} + + + {cleanUrlForUi(props.url)} + +
{props.description}
+ ) } -export default WebsiteCard; \ No newline at end of file +export default WebsiteCard diff --git a/searching-front/services/modules/elastic/index.ts b/searching-front/services/modules/elastic/index.ts index a2bda1d..27b6db3 100644 --- a/searching-front/services/modules/elastic/index.ts +++ b/searching-front/services/modules/elastic/index.ts @@ -125,7 +125,7 @@ class Elastic { query: { multi_match: { query: text, - fields: ["title^4", "description^3", "h1^2", "bodyText"], + fields: ["title^4"], }, }, })