by running a pruned node with txindex=1
You cannot use those two options together, you have to choose one of them. You can kind of reach that by importing every output as yours, but you probably should not and focus on UTXO scanning instead, if you really need pruning.