Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Redirect to the base url when searching empty query or equivalent #1229

Merged
merged 4 commits into from
Nov 8, 2021

Conversation

sdrll
Copy link
Contributor

@sdrll sdrll commented Nov 3, 2021

State : Draft (need to discuss)

Description

New behabior from Idunn fulltext endpoint :

  • Return http response 204 when the query is acceptable, but no results are return from elasticsearch
  • Return http response 200 when the query is acceptable and results are return from elasticsearch OR the query is empty (or equivalent) and no result are returned from ES

Goal

We would like to redirect to the base url in order to avoid : Sorry, we could not find this place when the query is empty or equivalent

The goal of the PR is to have a base to discuss with @xem.

Why

https://jira.qwant.ninja/browse/QMAPS-2199

@sdrll sdrll marked this pull request as draft November 3, 2021 16:42
@sdrll sdrll marked this pull request as ready for review November 8, 2021 08:33
@sdrll sdrll marked this pull request as draft November 8, 2021 08:39
@sdrll sdrll marked this pull request as ready for review November 8, 2021 11:07
@sdrll sdrll requested a review from xem November 8, 2021 13:20
@xem xem merged commit 3d0d615 into master Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants