MCPcopy Create free account
hub / github.com/github/docs / loadRecords

Function loadRecords

script/search/index-elasticsearch.js:413–417  ·  view source on GitHub ↗
(indexName, sourceDirectory)

Source from the content-addressed store, hash-verified

411}
412
413async function loadRecords(indexName, sourceDirectory) {
414 const filePath = path.join(sourceDirectory, `${indexName}-records.json`)
415 const payload = await fs.readFile(filePath)
416 return JSON.parse(payload)
417}
418
419function getSnowballLanguage(language) {
420 // Based on https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-snowball-tokenfilter.html

Callers 1

indexVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected