The Wanlorn (
the_wanlorn) wrote in
dw_dev2011-09-07 08:08 pm
Entry tags:
Searching on Hacks?
Is there a way to turn on content searching on our dreamhacks? I'm trying to test Bug 1847, and I'm getting the "Sorry, content searching is not configured on this server." error. Is there a way for me to configure this?
If not! Should I upload the patch that I think might possibly work as something for someone else to work off of if they want to do the bug, or to be reviewed, or just let it lie?
If not! Should I upload the patch that I think might possibly work as something for someone else to work off of if they want to do the bug, or to be reviewed, or just let it lie?

no subject
no subject
no subject
We've accepted patches like this before -- what you can do in this case is to:
* upload with the review? flag (to indicate it needs someone to look at it), but no commit? flag (to indicate it's not been tested fully, so that the reviewer can see at a glance that this patch needs some additional attention)
* leave a comment stating exactly what you've said in this post
And someone with things set up can apply it and check it, etc.
Basically it's not a problem, so long as we know how much testing the patch has actually received and any known or potential issues.
no subject
no subject
I've refactored the search worker, and then uploaded an additional patch to Bug 1847 which just returns as "search" results the latest 20 entries of the journal being searched, suitable for use with things like these...
no subject
no subject
# if no gearman, bailmy $gc = LJ::gearman_client();
return "Sorry, content searching is not configured on this server.\n"
unless $gc && @LJ::SPHINX_SEARCHD;
I am pretty sure that it's the gearman_client call, but once I found that, I... have no clue how to fake it. Do you have any pointers?
no subject
I think what I did was something like this:
Then I chose a port nobody else was using (but I think the documented procedure probably ought to involve asking
My config-local.pl has:
Let's see, I've also had to do this sort of thing for mogilefs, theschwartz, workers in general, memcached, and probably something else I'm forgetting. I have no doubt that it's possible to do the same for sphinx without needing root privileges, but it does seem like a bit of a bother.
no subject
Let me see if I can get her attention directed towards here!
no subject
And part of me is like "but Erin you have a server that is just gathering dust right now... you could set up your own hack... and do this... you know you want to."
:D: