It's important to note that there's some debate about what constitutes a "word" in Māori, as there are many compound words that are formed by combining multiple simpler words.
For example, "Aotearoa" is often considered a single word, but it's actually a combination of "Ao" (world/cloud) and "Te" (the) and "roa" (long).
So while "Tāwhio-rehia" is the longest single-word entry in the Māori dictionary, other combinations of words could be considered longer.