appbaseio / appbaseio/reactivesearch

Add support for "rescore" query in SSR.

Open
#1,583 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

**Affected Projects**
React

**Is your feature request related to a problem? Please describe.**
Elasticsearch supports `rescore` query, that allows us to re-rank results based on some function. Machine Learning models use this rescore query to re-rank results based on the business logic. It works on client side but not with SSR.

For reference - https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-rescore.html

**Describe the solution you'd like**
A possible solution would be adding support for the `rescore` query in the `defaultQuery` function of `ReactiveList` component.

**Describe alternatives you've considered**
-

**Additional context**
-

Contributor guide

Open the contributing guide

Research direction

Locate the ReactiveList component and its defaultQuery function, then compare how query parameters are assembled during client rendering versus SSR. Use Elasticsearch's rescore query reference to define the expected behavior; done means rescore queries are honored when results are rendered through SSR.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, javascript, react
Domain
frontend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.