[ckan-dev] Deleted packages in search results

William Waites ww at eris.okfn.org
Wed Jan 12 22:34:07 UTC 2011


How about have state:active by default and have a checkbox
to disable this, e.g. "show deleted packages"?

-w

* [2011-01-12 22:48:53 +0100] Friedrich Lindenberg <friedrich at pudo.org> écrit:

] Hi all,
] 
] I'm currently trying to debug an issue that has been brought up by the
] HRI folks: in their CKAN instance, they've deleted a large number of
] packages and they're using solr indexing. The problem with this is
] that both deleted and active packages are indexed, since we want
] admins to still search for them (do we?). Filtering for deleted
] packages is then done on the result set, while result counts remain
] wrong.
] 
] My initial approach to fixing this was to do filtering within solr by
] passing a list of all packages for which the querying user is an admin
] solr in a query such as this:
] 
]  +(state:active OR name:my_pkg1 OR name:my_pkg2)
] 
] Of course, this doesn't scale, especially for sysadmins which are
] admin to all packages. The solr query parser quits at about 1k package
] names. I'm now a bit unsure since the only solution I can spot is to
] include the list of admins into the index, thus replicating a part of
] the authz layer in solr.
] 
] Is there a better/smarter/easier way to circumvent this?
] 
]  - Friedrich
] 
] _______________________________________________
] ckan-dev mailing list
] ckan-dev at lists.okfn.org
] http://lists.okfn.org/mailman/listinfo/ckan-dev

-- 
William Waites                <mailto:ww at styx.org>
http://eris.okfn.org/ww/         <sip:ww at styx.org>
9C7E F636 52F6 1004 E40A  E565 98E3 BBF3 8320 7664




More information about the ckan-dev mailing list