forked from geolba/tethys.frontend
OpenSearch: almost implemented, fixing case sensitive issues
This commit is contained in:
parent
4f53411d07
commit
9b8b2bd5ac
8 changed files with 184 additions and 60 deletions
|
@ -60,17 +60,29 @@ export interface Dataset {
|
|||
|
||||
export class Suggestion {
|
||||
constructor(
|
||||
public value: string,
|
||||
public type: SearchType,
|
||||
public value: string, // Store the text value returned by OpenSearch
|
||||
// Store the highlight: i.e. the text value with the emphasised term that generated that results by OpenSearch.
|
||||
// In this way we can highlight the real term existing in the publication independently of how different was the inserted term used for the FUZZY search. e.g. "Vien" fuzzy matched with "Wien"
|
||||
public highlight: string,
|
||||
public type: SearchType, // Type of search element
|
||||
) {}
|
||||
// value!: string;
|
||||
// type!: SearchType;
|
||||
}
|
||||
|
||||
// export class Suggestion {
|
||||
// constructor(
|
||||
// public value: string,
|
||||
// public type: SearchType,
|
||||
// ) {}
|
||||
// // value!: string;
|
||||
// // type!: SearchType;
|
||||
// }
|
||||
|
||||
export enum SearchType {
|
||||
Title = "title",
|
||||
Author = "author",
|
||||
Subject = "subject"
|
||||
Title = "Title",
|
||||
Author = "Author",
|
||||
Subject = "Subject"
|
||||
}
|
||||
|
||||
export class DbDataset {
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue