Does Bitcoin Core txindex Support Pruning?
No, standard Bitcoin Core does not support enabling txindex together with pruning. The transaction index points to historical transaction locations in block files. Pruning discards old block data, making arbitrary historical retrieval incompatible with that index's purpose.
Are all indexes incompatible with pruning?
No. The basic block filter index and CoinStatsIndex support pruning, subject to access to historical data needed to build them. Their derived records can remain available even when old block files are removed. They cannot reconstruct the full contents of discarded blocks.
Do I need txindex to operate a wallet?
Not necessarily. A wallet can track its own transactions and use the node's current UTXO set without a global transaction index. Historical wallet rescans may still require block data that a pruned node no longer retains. Supplying a known block hash to getrawtransaction can also enable retrieval without txindex when that block is available.
Check the startup options and documentation of your installed Bitcoin Core release before changing storage settings. Disabling pruning does not automatically recreate previously deleted historical blocks.
Primary reference
Bitcoin Core initialization and option validation: https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp
