Ticket #159 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Searching for tags:... resulting in lots of tags being found

Reported by: rgrp Owned by: dread
Priority: critical Milestone: v0.11
Component: ckan Keywords:
Cc: Repository:


Search of form: tags: ... behaves differently depending on whether there is a leading space:

  • tags: postcode - tags found correctly but no packages found
  • tags:postcode - tags incorrectly found but correct packages found

Let's fix this.

Cost: 0.5h

Change History

comment:1 Changed 5 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in cset:e7ea5b97365e

Note: no spaces allowed between search operator and the word associated with the operator. So with "tags: postcode" it was searching for a blank tag. I've made the change so that would ignore 'tags' in this case, producing reasonable search results for postcodes in all fields. postcodes.

Cost: 1.5h

Note: See TracTickets for help on using tickets.