[ckan-changes] [okfn/ckan] dcf630: [#739] Add support for boost parameter in queries

GitHub noreply at github.com
Fri Apr 12 15:12:37 UTC 2013


  Branch: refs/heads/739-add-extra-options-to-query
  Home:   https://github.com/okfn/ckan
  Commit: dcf6307619c5820e28cbe59003264eea32322ef5
      https://github.com/okfn/ckan/commit/dcf6307619c5820e28cbe59003264eea32322ef5
  Author: amercader <amercadero at gmail.com>
  Date:   2013-04-12 (Fri, 12 Apr 2013)

  Changed paths:
    M ckan/lib/search/query.py

  Log Message:
  -----------
  [#739] Add support for boost parameter in queries


  Commit: a831e431c07c05dcf2bf68216ad10ffcdb38cc6a
      https://github.com/okfn/ckan/commit/a831e431c07c05dcf2bf68216ad10ffcdb38cc6a
  Author: amercader <amercadero at gmail.com>
  Date:   2013-04-12 (Fri, 12 Apr 2013)

  Changed paths:
    M ckan/logic/action/get.py

  Log Message:
  -----------
  [#739] Document new search parameters


  Commit: 7d12663890da127c2426abf94a44da5cd8514846
      https://github.com/okfn/ckan/commit/7d12663890da127c2426abf94a44da5cd8514846
  Author: amercader <amercadero at gmail.com>
  Date:   2013-04-12 (Fri, 12 Apr 2013)

  Changed paths:
    M ckan/lib/search/query.py
    M ckan/logic/action/get.py

  Log Message:
  -----------
  [#739] Pop extras from query parameters before sending them to Solr

Also move them from the root search params dict to 'extras', so they can
be also be used on GET requests, eg:

http://ckan/api/action/package_search?q=dogs&ext_bbox=1.36,41.13,1.38,41.15

gets transformed to:

{
    'q': 'dogs',
    'extras': {
  'ext_bbox': '1.36,41.13,1.38,41.15'
    }
}


Compare: https://github.com/okfn/ckan/compare/dcf6307619c5^...7d12663890da


More information about the ckan-changes mailing list