Problem/Motivation

To remove all the documents from an index in Drush, two commands need to be executed sequentially - drop and setup commands.

It would be helpful if truncate command was available which would only remove the documents, and left the index setup (incl. mapping) intact.

Proposed resolution

Create a drush command which allows truncating the index.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

maijs created an issue. See original summary.

rudins’s picture

StatusFileSize
new5.36 KB

Here is patch for new truncate command.

maijs’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new9.29 KB

Adding a test for truncate command.

  • maijs committed ffab36e0 on 8.x authored by rudins
    Issue #3345804 by maijs, rudins: Add command to truncate the indices
    

  • maijs committed 5b893457 on 8.x-7.x authored by rudins
    Issue #3345804 by maijs, rudins: Add command to truncate the indices
    
maijs’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.