One thing I should point out, this lib is focused on performance, rather
than code tidyness. As it is a prototype, the code structure and layout is
*extremely* messy. But, I'm able to pull back 50 thousand results, convert
the results to Django models, and have the result cached, in under 0.2
seconds, and this also includes the django framework loading time itself :P

It will be made faster once we release a proper patch :)

Cal

On Tue, Mar 29, 2011 at 1:58 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Oh, you also need this:
>
> sphinxapi.py
> http://pastebin.com/FrjBDiME
>
>
> On Tue, Mar 29, 2011 at 1:57 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Okay, here you go. Remember, these are literally just cut and pasted out
>> of one of our webapps, so you'll need to most likely read the source code of
>> each file, to truly understand what is going on. But, one thing I can
>> guarantee, is that this code works, lol. Eventually, we'll be releasing a
>> proper sphinx patch for Django, and aiming to have it introduced into the
>> core. I just haven't got time atm though.
>>
>> django_sphinx_proper.py
>> http://pastebin.com/RJN25Z2z
>>
>> settings.py
>> http://pastebin.com/jfn83hXP
>>
>> models.py
>> http://pastebin.com/T6qBFhG3
>>
>> example.py
>> http://pastebin.com/Bvaw7ER5
>>
>>
>> On Tue, Mar 29, 2011 at 1:48 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Hey,
>>>
>>> I actually ended up writing my own wrapper for Django and Sphinx, because
>>> the one written by dcramer was retarded.
>>>
>>> I haven't yet done a public release for this, nor any documentation.
>>>
>>> However, I'll post you the library, and some example usage, but don't
>>> expect this to be an "easy" one-click install lol.
>>>
>>> Give me 5 mins.
>>>
>>>  Cal
>>>
>>> On Tue, Mar 29, 2011 at 11:11 AM, galgal <weglarek.rob...@gmail.com>wrote:
>>>
>>>> What library can I use with Django to use Sphinx?
>>>> I found https://github.com/dcramer/django-sphinx but it's not supported
>>>> yet:/
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> django-users+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>
>>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to