WIP: new query/index implementation
integration with the map implementation
Merge remote-tracking branch 'origin/3.0' into 3.0