Ticket #1276 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Apply weighting to search fields in solr

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


For example:

  • name and title should have a higher weight than the notes field

Change History

comment:1 Changed 3 years ago by johnglover

  • Milestone changed from ckan-current-sprint to ckan-sprint-2011-09-12

Added to branch feature-1275-solr-search

Don't seem to be able to apply weighting to fields at index time using solrpy (see open issue: http://code.google.com/p/solrpy/issues/detail?id=6). So, switched to using the newer Solr edismax query parser and have applied weights to fields at search time.

Current weights are as follows:

name: 4 title: 4 group: 2 tag: 2 text (everything else): 1

comment:2 Changed 3 years ago by rgrp

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

Closing since done (though not yet in main!)

Note: See TracTickets for help on using tickets.