elastic/elasticsearch
elastic/elasticsearch has 3,368,978 source lines of code out of 4,688,278 total lines across 23,251 files, counted with tokei from the main ref at commit 90c621769707 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
elastic/elasticsearch: 3,368,978 code lines at commit 90c621769707, counted with tokei-15.0.0 on 2026-11-24. Saved result 08ae96432c28b9e41768b472b2a58f019af0e1c3365114e7b0fbd5ae2bac899b.
Source: elastic/elasticsearch on GitHub · counted commit 90c621769707
OctoCounts produced this report by resolving elastic/elasticsearch to commit 90c621769707, 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.9% of all lines, comments represent 17.2%, and the repository averages 145 code lines per file. Java accounts for 91.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 20731 | 4183268 | 3083058 | 633936 | 466274 |
| C Header | 8 | 188573 | 127831 | 45981 | 14761 |
| JSON | 1022 | 67176 | 67165 | 0 | 11 |
| C++ | 37 | 76069 | 52870 | 16363 | 6836 |
| Groovy | 69 | 14733 | 11629 | 1323 | 1781 |
| YAML | 237 | 13894 | 10986 | 2106 | 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 |
| Dockerfile | 4 | 762 | 528 | 143 | 91 |
| Batch | 24 | 686 | 525 | 22 | 139 |
| SQL | 13 | 867 | 300 | 561 | 6 |
| Makefile | 2 | 455 | 269 | 109 | 77 |
| 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 | 69 | 7395 | 0 | 5530 | 1865 |
| Plain Text | 940 | 117281 | 0 | 96350 | 20931 |
Top language: Java 91.5%. 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
Report FAQ
How many lines of code does elastic/elasticsearch have?
elastic/elasticsearch has 3,368,978 lines of code, plus 804,284 comment lines and 515,016 blank lines, for 4,688,278 total lines at commit 90c621769707 on November 24, 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 90c621769707, 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 90c621769707 on November 24, 2026.
Similar repository reports
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
- metasfresh/metasfresh — Java, 3,505,889 code lines
- Ettacent/NimarkoGram — Java, 2,903,618 code lines
- exteraless/exteraless — Java, 3,951,205 code lines
- exteraSquad/exteraGram — Java, 2,790,261 code lines
- risin42/NagramX — Java, 4,212,256 code lines
- prsdrty-unofficial/exteraOSS — Java, 2,643,868 code lines
Play the growth animation for elastic/elasticsearch on this page — 3,368,978 code lines across 24 languages, counted by tokei.