elastic/elasticsearch

elastic/elasticsearch has 3,254,671 source lines of code out of 4,529,410 total lines across 22,672 files, counted from the main ref at commit 5a62eae42c20 by the OctoCounts tokei engine on 2026-10-24. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-24 (commit 5a62eae42c20), elastic/elasticsearch contains 4,529,410 total lines: 3,254,671 code, 774,151 comments, 500,588 blank, across 22,672 files in 24 languages (top: Java 91.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-24 (commit 5a62eae42c20), elastic/elasticsearch contains 4,529,410 total lines: 3,254,671 code, 774,151 comments, 500,588 blank, across 22,672 files in 24 languages (top: Java 91.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving elastic/elasticsearch to commit 5a62eae42c20, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

Repository size insights

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

LanguageFilesLinesCodeCommentsBlanks
Java2019040300022972788604895452319
C Header81885671278264597214769
JSON9996656766556011
C++347451251682161196711
YAML23613455105652092798
Groovy62127851005711601568
XML126998683710655
TOML11520536731006526
AsciiDoc171734128021433
Shell1318761151505220
Batch246565162138
Dockerfile571148713094

Top language (Java 91.3%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does elastic/elasticsearch have?

elastic/elasticsearch has 4,529,410 total lines, including 3,254,671 code lines, 774,151 comment lines, and 500,588 blank lines.

How was the elastic/elasticsearch line count measured?

OctoCounts resolved the public GitHub repository to commit 5a62eae42c20, 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 5a62eae42c20 on 2026-10-24T11:54:43.057913247+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for elastic/elasticsearch on this page — 3,254,671 code lines across 12 languages, counted by tokei.