Questions tagged [django-sphinx]

django-sphinx is a pluggable django app that implements a layer that functions much like the Django ORM does except it works on top of the Sphinx full-text search engine.

django-sphinx is a pluggable django app that implements a layer that functions much like the Django ORM does except it works on top of the Sphinx full-text search engine.

45 questions
0
votes
1 answer

Django sphinx works only after app restart

I've set up django-sphinx in my project, which works perfectly only for some time. Later it always returns empty result set. Surprisingly restarting django app fixes it. And search works again but again only for short time (or very limiter number of…
Lhiash
  • 1
  • 2
0
votes
1 answer

MySQL efficiency as it relates to the database/table size

I'm building a system using django, Sphinx and MySQL that's very quickly becoming quite large. The database currently has about 2000 rows, and I've written a program that's going to populate it with another 40,000 rows in a couple days. Since the…
mlissner
  • 17,359
  • 18
  • 106
  • 169
0
votes
1 answer

How to combine sphinxquerysets in django-sphinx

querysets from django can be combined with a pipe like so: q1 = Articles.objects.filter(name="goats") q2 = Articles.objects.filter(name='cows') q1 = q1|q2. Is there a way to do this for sphinxquerysets? So far, I'm striking out.
mlissner
  • 17,359
  • 18
  • 106
  • 169
0
votes
1 answer

Everything is ok, but my 127.0.0.1:8000 can't show anything, why ? I used django-sphinx

from djangosphinx.models import SphinxSearch def xx(request): queryset =File.search.query('test') #return HttpResponse(queryset)#<------1 return render_to_response('a.html',{'a':queryset})#<--------2 and class File(models.Model): …
zjm1126
  • 63,397
  • 81
  • 173
  • 221
0
votes
3 answers

django error:connection to localhost;3312 failed ,i used django-sphinx

Traceback (most recent call last): File "D:\Python25\Lib\site-packages\django\core\servers\basehttp.py", line 280, in run self.finish_response() File "D:\Python25\Lib\site-packages\django\core\servers\basehttp.py", line 319, in…
zjm1126
  • 63,397
  • 81
  • 173
  • 221
0
votes
2 answers

django error ,about django-sphinx

from django.db import models from djangosphinx.models import SphinxSearch class MyModel(models.Model): search = SphinxSearch() # optional: defaults to db_table # If your index name does not match MyModel._meta.db_table # Note: You can…
zjm1126
  • 63,397
  • 81
  • 173
  • 221
0
votes
1 answer

Order_by in django sphinx

I have implemented django-sphinx search in my website. I need result set "order by end_time" but i got results oder by first "id" and then "end_time". My conf is: source main_event : main_civilengagement { sql_query = \ …
Veeneet
  • 1
  • 1
0
votes
2 answers

How to get field name

Recently i have implemented django-sphinx search on my website. It is working fine of each separate model. But now my client requirement has changed. To implement that functionality i need field name to whom search is made. suppose my query…
0
votes
1 answer

django-sphinx-db: raw sql queries, join with msql tables?

I am thinking of using django-sphinx-db https://pypi.python.org/pypi/django-sphinx-db Before I install it, just thought I would check: Is it possible to join the special sphinx tables with the regular mysql tables? Can I do this using raw…
user984003
  • 28,050
  • 64
  • 189
  • 285
0
votes
1 answer

Sphinx reverse search - when new item is added, execute searches on existing stored keywords

I have an app where people can list stuff to sell/swap/give away, with 200-character descriptions. Let's call them sellers. Other users can search for things - let's call them buyers. I have a system set up using Django, MySQL and Sphinx for text…
awidgery
  • 1,896
  • 1
  • 22
  • 36
0
votes
1 answer

Sphinx search on Django raise exception TypeError at /search/

I am trying out to build full-text searching by using sphinx search, postgresql & django based on this tutorial: http://pkarl.com/articles/guide-django-full-text-search-sphinx-and-django-sp/. All setup done for sphinx & postgresql and it works but I…
panjianom
  • 236
  • 4
  • 18
0
votes
1 answer

Build Sphinx Documentation on ReadTheDocs

There's a way to let readthedocs.org build a sphinx-based documentation for a Django project (hosted on git) that is running on google app engine? I continue to get this error: Sphinx Standard Error The Google App Engine SDK could not be found! I…
0
votes
1 answer

How to go about testing a django app which extensively uses sphinxsearch?

I have a django powered website that uses sphinxsearch for searching and querying. The Django testing platform creates a test database against which all your test cases are tested. However my original sphinx indexer would still be indexing the…
Ritesh Kadmawala
  • 743
  • 9
  • 17
-1
votes
1 answer

Django Sphinx Foreign key search

I'm trying to create full text search on model, everything goes fine when searching TextFields but I have a problem with ForeignKey field. How can i do that? Can anyone point me to the right direction? Thanks Model example: class…
Radovan
  • 29
  • 4
-1
votes
2 answers

Django 'NoneType' object has no attribute '__getitem__'

I read this article http://eshlox.net/en/2012/09/13/sphinxsearch-and-django-ubuntu/ In view i get error for code: total = query_results['total'] error: 'NoneType' object has no attribute 'getitem' def search(request): if request.GET: …
russianstudent
  • 129
  • 2
  • 12
1 2
3