Ticket #1468 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Update the search index for individual packages

Reported by: thejimmyg Owned by: johnglover
Priority: minor Milestone: ckan-sprint-2011-12-05
Component: ckan Keywords: search
Cc: Repository: ckan
Theme: none

Description

When I delete a package from the pylons shell I need to remove that package's entry from the Solr search index. That doesn't happen at the moment.

It would be useful if the search-index rebuild command could take a list of package IDs to rebuild.

Change History

comment:1 Changed 2 years ago by johnglover

  • Owner changed from jglover to johnglover
  • Status changed from new to assigned

comment:2 Changed 2 years ago by johnglover

  • Milestone changed from current-ckan-sprint-2011-11-21 to ckan-sprint-2011-12-05

New ticket, moving over to new sprint

comment:3 Changed 2 years ago by johnglover

  • Keywords search added
  • Status changed from assigned to closed
  • Resolution set to fixed

Done - commit: https://github.com/okfn/ckan/commit/7789e85c973c9e085f623486bced6be14f25678f

rebuild can now take an optional package name/id (single package to be consistent with other paster commands, not a list of packages)

comment:4 Changed 2 years ago by dread

We originally talked about a command-line interface for deleting packages. I've done this here: #1499.

Note: you can update the search index from a paster shell, simply by doing this before running your commands that edit packages:

from ckan import plugins
plugins.load('synchronous_search')
Note: See TracTickets for help on using tickets.