This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
[PROTOTYPE - DO NOT MERGE] Opensearch prototype #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is very, very hacky, and not even remotely production ready - trying to use it, it almost certainly will break in many ways
We'll implement this in several pieces, this is just a proof of concept prototype to test out how the search index works, and the rough level of effort to use it.
Features
Not implemented
Additional information
Assuming I'm not missing any steps, you should be able to run this locally by running the following:
If you also run the frontend (
npm run dev
from the frontend folder) you should be able to use it. For example:If you'd like to try querying the search index directly, you can use the dev tools console at http://localhost:5601/app/dev_tools#/console - below is a query that you can test out that contains all of the same filters as the API. This may be too specific of a query and you'll likely get few or no results. I suggest removing a few filters to do so. Note that the way this query works is that there is a
must
section, these queries are used in scoring, and afilters
section that don't impact scoring, they just act as true filters on the data.