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.
elastic/elasticsearch: 3,316,772 code lines at commit d0146ae54c4d, counted with tokei-15.0.0 on 2026-11-16. Saved result 6541dc14d77ab0740374a13aa6948060b8a1ff4b4dc10c9b38daac5e67789730.
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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 20457 | 4112417 | 3031629 | 621222 | 459566 |
| C Header | 8 | 188573 | 127831 | 45981 | 14761 |
| JSON | 1016 | 66993 | 66982 | 0 | 11 |
| C++ | 37 | 76069 | 52870 | 16363 | 6836 |
| Groovy | 67 | 14233 | 11232 | 1275 | 1726 |
| YAML | 237 | 13702 | 10795 | 2105 | 802 |
| XML | 12 | 7125 | 6957 | 113 | 55 |
| TOML | 11 | 5206 | 3674 | 1006 | 526 |
| AsciiDoc | 17 | 1749 | 1291 | 21 | 437 |
| Shell | 14 | 1934 | 1215 | 490 | 229 |
| Batch | 24 | 686 | 525 | 22 | 139 |
| Dockerfile | 4 | 744 | 518 | 135 | 91 |
| SQL | 13 | 867 | 300 | 561 | 6 |
| Makefile | 2 | 461 | 273 | 110 | 78 |
| BASH | 27 | 505 | 266 | 139 | 100 |
| Python | 2 | 380 | 265 | 49 | 66 |
| Forge Config | 3 | 75 | 66 | 0 | 9 |
| Protocol Buffers | 2 | 91 | 37 | 40 | 14 |
| JavaScript | 2 | 38 | 31 | 1 | 6 |
| FreeMarker | 3 | 7 | 7 | 0 | 0 |
| Mustache | 1 | 5 | 5 | 0 | 0 |
| SVG | 1 | 4 | 3 | 1 | 0 |
| Markdown | 68 | 7309 | 0 | 5461 | 1848 |
| Plain Text | 940 | 117281 | 0 | 96350 | 20931 |
Top language: Java 91.4%. Generated on .
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.
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.
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.
This OctoCounts report was generated from main at commit d0146ae54c4d on November 16, 2026.
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,316,772 code lines across 24 languages, counted by tokei.