elastic/elasticsearch

elastic/elasticsearch has 3,316,772 source lines of code out of 4,616,454 total lines across 22,968 files, counted with tokei from the main ref at commit d0146ae54c4d on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-16 (commit d0146ae54c4d), elastic/elasticsearch contains 4,616,454 total lines: 3,316,772 code, 791,445 comments, 508,237 blank, across 22,968 files in 24 languages (top language: Java 91.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-16 (commit d0146ae54c4d), elastic/elasticsearch contains 4,616,454 total lines: 3,316,772 code, 791,445 comments, 508,237 blank, across 22,968 files in 24 languages (top language: Java 91.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving elastic/elasticsearch to commit d0146ae54c4d, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

Repository size insights

This is a very large codebase by counted code lines. Code represents 71.8% of all lines, comments represent 17.1%, and the repository averages 144 code lines per file. Java accounts for 91.4% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Java2045741124173031629621222459566
C Header81885731278314598114761
JSON10166699366982011
C++377606952870163636836
Groovy67142331123212751726
YAML23713702107952105802
XML127125695711355
TOML11520636741006526
AsciiDoc171749129121437
Shell1419341215490229
Batch2468652522139
Dockerfile474451813591

Top language: Java 91.4%. Generated on .

Counting rules and retention

elastic/elasticsearch: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does elastic/elasticsearch have?

elastic/elasticsearch has 3,316,772 lines of code, plus 791,445 comment lines and 508,237 blank lines, for 4,616,454 total lines at commit d0146ae54c4d on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the elastic/elasticsearch line count measured?

OctoCounts resolved the public GitHub repository to commit d0146ae54c4d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for elastic/elasticsearch?

This OctoCounts report was generated from main at commit d0146ae54c4d on November 16, 2026.

Play the growth animation for elastic/elasticsearch on this page — 3,316,772 code lines across 24 languages, counted by tokei.