How can I search draft versions in admin?

Topics: Customizing Orchard
Jul 26, 2013 at 4:34 PM
Edited Jul 26, 2013 at 4:35 PM

  1. (There is unpublished Page content item with "Welcome" title)
  2. Open http://localhost:30320/Admin/Search
  3. Enter: "welcome", press "Search"
  4. "There are no results" displayed.
There is Orchard.Indexing.Services.IndexingTaskExecutor.BatchIndex(..) procedure with

var contentItems = _contentRepository
    versionRecord => versionRecord.Published && versionRecord.Id > indexSettings.LastContentId,
    order => order.Asc(versionRecord => versionRecord.Id))
    .Select(versionRecord => _contentManager.Get(versionRecord.ContentItemRecord.Id, VersionOptions.VersionRecord(versionRecord.Id)))
How to implement search in admin in draft versions along with published? Should there be new index?

Thank you