Fixed relevance tuning (#97172)

This commit is contained in:
Jason Stoltzfus 2021-04-14 16:50:42 -04:00 committed by GitHub
parent af9129b584
commit e9eff7181a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -69,4 +69,5 @@ export interface SearchSettings {
boosts: Record<string, Boost[]>;
search_fields: Record<string, SearchField>;
result_fields?: object;
precision?: number;
}

View file

@ -53,6 +53,7 @@ describe('search settings routes', () => {
boosts,
result_fields: resultFields,
search_fields: searchFields,
precision: 2,
};
beforeEach(() => {

View file

@ -22,6 +22,7 @@ const searchSettingsSchema = schema.object({
boosts,
result_fields: resultFields,
search_fields: searchFields,
precision: schema.number(),
});
export function registerSearchSettingsRoutes({