Moved CreateSearchIndex from CollectionQuery to CollectionDefinition, seemed more appropriate.