Skip to content

PG Search | CV Search

DominikFischli edited this page May 18, 2020 · 1 revision

The PG Search is being used for the fulltext CV-Search feature of the application.

This feature is differs in its implementation from the rest of the Backend, because there is no model representing it and therefore it can't be accessed over the Ember Data Store.

Instead, it acts like a classic endpoint.

Usage

The frontend accesses the search in routes/cv-search.js with a fetch. The search string is passed as a GET param.

The request will look like this: host:port/api/people/search?q=Ned

The reply will look like this: [ { person: { id: 1, name: 'Ned' }, found_in: "name" }, {...} ]

Clone this wiki locally