What is a doji candlestick?
A doji has the same or nearly the same opening and closing price. Its wicks can still be long. Compare the small body with the full high-to-low range and the neighboring bars.

Read the body and wicks together
A hypothetical candle opens at 100.00, reaches 104, falls to 97 and closes at 100.02. The 0.02 body is tiny relative to the 7 high-to-low range, so it could count as a doji under a stated tolerance. The candle does not say whether the high or low happened first.
Why definitions vary
Depending on minimum price increments, an exact match can be uncommon or frequent. Some software uses a small percentage of the range or compares the body with recent bodies. Long-legged and other variants use different wick proportions. Record the threshold before counting occurrences.
How it fits the surrounding chart
A near-flat close after a trend can be worth describing. A near-flat close in a quiet range might be routine. Compare it with neighboring candles, liquidity and whether the next bar confirms any predefined condition. A doji never establishes a reversal by itself.
Which part of the candle is actually small?
A long-legged doji can have substantial wicks on both sides of an almost flat body. A doji with one long wick describes a different intrabar range even with the same open and close relationship. Record both wick proportions and the body threshold when naming a variant.
Could a candle with no range also qualify?
Some definitions count it, but a flat bar can represent sparse trading or a feed issue. Examine volume and how the chart builds empty periods.
Educational material. Examples are hypothetical.