Can someone please write a quick-start for this search engine on
Django. I've already set up django app and sphinix search engine in a
shell. There are some basic instructions in the snippets, but are not
that self explanatory to a noob like me :(

I got lost with how to implement this in the project as a whole. How
to connect this ORM with models and views.

I'd like to see some examples on how you edited sphinx.conf as well,
especially how you specified "sql_query" in source definition and how
to set it up with models that have ManyToMany fields.

***
http://www.djangosnippets.org/snippets/231/

class MyModel(models.Model):
    search = SphinxSearch()

MyModel.search.query('query')
MyModel.search.query('query').order_by('@weight', '@id',
'my_attribute')
MyModel.search.query('query').filter(my_attribute=5)
MyModel.search.query('query').filter(my_other_attribute=[5, 3,4])
MyModel.search.query('query').exclude(my_attribute=5)[0:10]
MyModel.search.query('query').count()

SphinxSearch().query('hello').on_index('model_myapp model_myotherapp')

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to