Adding setIndex function to nodes and leaves.
Example of boolean query in exec.py