fix query parse bug, and occurrence indexer bug.