Open NotoriousMBB opened 2 years ago
The idea is to help users of a local LII website find related content either in the AU materials on AfricanLII.org (primarily), or on other local LIIs (secondary) -- let's call them offsite results. The value is that users of a local LII may not know what regional or AU materials relate to their research, and we want to help them realise that regional materials may apply.
In particular, we're doing this only when the user is searching. Other mechanisms (eg. on a document detail page) may come later.
The goal is not to mix all matching offsite results (which could be a lot) into local search results. Rather, it's to hint to the user that there may be others worth exploring. As such, it may be sufficient to show just 1-3 offsite results and indicate that they are external and there may be more worth looking at.
At a high level, the experience looks like this:
The user may want to be able to opt-out of showing remote results completely.
Here's an example of what this could look like:
Some constraints:
locality == "Gauteng"
) would result in no offsite resultsThe search flow could look like this:
/search
, enters their search term/api/search/documents
as usual/api/search/documents/external
, giving it the same search parameters and the minimum scoreagp.africanlii.org/api/search/documents/federated
with the search paramsagp.africanlii.org
, the server does the search in ES and limits the results to a maximum of 3 (or whatever) and ensures that results must be scored greater than the minimum scoreNote that we're assuming that the scores are comparable. We think this is safe because the structure of the indexes and scoring mechanisms are the same for all peachjam-based indexes.
We could use a similar device to bring local LII results into agp.africanlii.org, or to bring remote LII results into a local LII (not just results from AGP).
Folks, this is a deliverable for GIZ and AGP project. Has this been implemented? i.e. I need to be able to see AfricanLII results in TanzLII as well as browse regional materials @niiroobiro
Re-opening for further discussion.
by receiving a group of AGP search results on the keyword searched as one of the filtering options in my lawlibrary.org.za search results page