[ckan-dev] full text search and sql

David Read david.read at okfn.org
Mon Feb 7 12:55:01 UTC 2011


On 7 February 2011 12:37, William Waites <ww at styx.org> wrote:

> ] Problem #3 -- there's therefore at least one missing test :)
>
> Quite possibly, if we are going to fix the Sql search
> back-end there should be a test case that makes sure
> the '*:*' search works as expected.
>
> OTOH, doing a  complex FTS query in order to just
> return all packages or in some cases not all packages
> but tags and count(tags) to build the front-page tag
> cloud is a little silly. Is it possible to directly
> query the database for the necessary entry points
> into the faceted browsing stuff? Maybe we should do
> this even if we do have Solr for the fancier
> searching. While a test can certainly be written
> that does get(home) | grep '[1-9] packages' the more
> important question is how we want this to work and
> whether we *require* and specifically optimise for
> Solr rather than having it as an option.
>
> Part of the problem is we now have several deployment
> scenarios, with and without Solr, with and without
> queueing, with sqlite and postgres. And so it isn't
> enough to run the tests once in a single configuration.
> The recent work of DR promises to help with this.
> Should we merge the nose plugin from bug_955_tidy_up_tests
> into head so this can be done easily?
>

There is still some outstanding issues with the nose plugin we're debating,
so it's not ready for merging yet.

But I still believe that we should each run the basic set of tests locally
before every check-in (on postgres if you think search might be affected, or
on major changes) and let buildbot do the more thorough testing.

@pudo: Since the SOLR stuff is now in an extension, perhaps there are some
tests in there we can add to buildbot?

In the meantime I'm re-running the tests with
> postgres - I had blithely supposed that skipping
> the search tests with sqlite wasn't a problem since
> I wasn't working on anything search related to see
> if I can track down the badly ordered INSERTs...
>
> Cheers,
> -w
> --
> William Waites                <mailto:ww at styx.org>
> http://river.styx.org/ww/        <sip:ww at styx.org>
> F4B3 39BF E775 CF42 0BAB  3DF0 BE40 A6DF B06F FD45
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110207/26083913/attachment-0001.html>


More information about the ckan-dev mailing list