Roi,
There is no documentation on the internals of Query engine...I believe
there are tools which can generate package/class diagrams and their
relationship...Based on the problem/issue, we could point to the source
file, where you can find more info.
To know how query is picking the best index;
DefaultQuery is where the processing starts for a query.
CompiledSelect will most likely be the first node in processing the query.
The IndexManager class will contain the list of indexes for a region as
well as the methods that help find indexes to use with a query.
Specific index classes:
Comp