MCPcopy Create free account
hub / github.com/axe-api/axe-api / search

Method search

packages/axe-api/src/Services/ElasticService.ts:45–55  ·  view source on GitHub ↗
(modelName: string, page: number, size: number, body: any)

Source from the content-addressed store, hash-verified

43 }
44
45 async search(modelName: string, page: number, size: number, body: any) {
46 const index = this.toIndex(modelName);
47
48 LogService.debug(`\t🔄 ES.search(${index}) => ${JSON.stringify(body)}`);
49 return await this.client.search({
50 index,
51 body,
52 from: (page - 1) * size,
53 size,
54 });
55 }
56
57 private toIndex(modelName: string): string {
58 const prefix = this.config.indexPrefix ? `${this.config.indexPrefix}-` : "";

Callers 1

FetchPhase.tsFile · 0.45

Calls 2

toIndexMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected