search api
This commit is contained in:
parent
354d308067
commit
ff471bf52a
@ -66,7 +66,7 @@ export class SearchControllerService {
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
let httpHeaderAccepts: string[] = ['application/json'];
|
||||
const httpHeaderAccepts: string[] = ['application/json'];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected !== undefined) {
|
||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||
|
||||
23
libs/red-ui-http/src/lib/model/matchedDocument.ts
Normal file
23
libs/red-ui-http/src/lib/model/matchedDocument.ts
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* API Documentation for Redaction Gateway
|
||||
* Description for redaction
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { MatchedSection } from './matchedSection';
|
||||
|
||||
export interface MatchedDocument {
|
||||
containsAllMatchedSections?: boolean;
|
||||
dossierId?: string;
|
||||
fileId?: string;
|
||||
highlights?: { [key: string]: Array<string> };
|
||||
matchedSections?: Array<MatchedSection>;
|
||||
matchedTerms?: Array<string>;
|
||||
score?: number;
|
||||
unmatchedTerms?: Array<string>;
|
||||
}
|
||||
18
libs/red-ui-http/src/lib/model/matchedSection.ts
Normal file
18
libs/red-ui-http/src/lib/model/matchedSection.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* API Documentation for Redaction Gateway
|
||||
* Description for redaction
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface MatchedSection {
|
||||
headline?: string;
|
||||
matchedTerms?: Array<string>;
|
||||
pages?: Array<number>;
|
||||
sectionNumber?: number;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user