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

Function getSnowballLanguage

script/search/index-elasticsearch.js:419–432  ·  view source on GitHub ↗
(language)

Source from the content-addressed store, hash-verified

417}
418
419function getSnowballLanguage(language) {
420 // Based on https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-snowball-tokenfilter.html
421 // Note, not all languages are supported. So this function might return
422 // undefined. That implies that you can't use snowballing.
423 return {
424 en: 'English',
425 fr: 'French',
426 es: 'Spanish',
427 ru: 'Russian',
428 it: 'Italian',
429 de: 'German',
430 pt: 'Portuguese',
431 }[language]
432}

Callers 1

indexVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected