You cannot post messages because only members can post, and you are not currently a member.
|
Custom id fields.. what's this comment mean?
|
| |
from models.py, line 581 or so:
# django-sphinx supports the compositepks branch
# as well as custom id columns in your sphinx
configuration
# but all primary key columns still need to be present
in the field list
I can't find reference to 'custom id columns' in the sphinx docs. What... more »
|
|
Turning on passages returns no results
|
| |
Hi, I'm trying to use django-sphinx to get excerpts working on my site, so I changed my code to do a query as such: queryset = Document.search.query(q) results = queryset.set_options(mode="SPH _MATCH_EXTENDED2", passages=True).order_by('-date Filed') Previously, this code returned one result for the same query:... more »
|
|
Concerned about how order_by is working...
|
| |
So, question on order_by. When I issue a query through djangosphinx
with an order_by clause on an attribute of mine, I see that Sphinx
returns the list of pks in the correct order say (5,3,7). Then
djangosphinx issues a Django query for the models with that list of
ids.. something like... 'SELECT * FROM app_model WHERE id IN (5,3,7)'... more »
|
|
BuildExcerpts AssertionError
|
| |
I'm trying to use BuildExcerpts in django sphinx. My view looks
something like this:
q = request.GET.get('q', '')
my_model_list = MyModel.search.query(q).set_op tions(passages=True,
passages_opts={
'before_match':"<font color='red'>",
'after_match':'</font>',... more »
|
|
Older Versions
|
| |
Hi,
I've been searching google to little avail. Where can I get older
vesions of django-sphinx that work with django-1.0.4?
Thanks,
Ben
|
|
Geo Location using django-sphinx
|
| |
Hi,
I want to do something similar to this:
[link]
using django-sphinx. Basically I want to implement geo-location search
using django-sphinx. Is it possible?
Has somebody done something like that?
Thank you.
|
|
Sphinx Admin
|
| |
Does the example shown on the django-sphinx page still apply?
from djangosphinx.admin import SphinxModelAdmin
class MyAdmin(SphinxModelAdmin):
index = 'my_index_name' # defaults to Model._meta.db_table
weights = {'field': 100}
Can anyone show an example adding the SphinxModel to the admin model?... more »
|
|
Non-asci characters in search = no result
|
| |
Hi,
don't know if anybody read this...but when performing queries with non-
asci characters, i get no match, but there should be match.
Has anybody faced this problem?
R.
|
|
Django Sphinx Foreign key search
|
| |
Hi, 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 Model1(models.Model): text_field =models.TextField(max_length=2 50)... more »
|
|
Use date fields as attributes
|
| |
I have a date field in my model that I'd like to use as an attribute, but it's not working. For example, I'd like to be able to search like this (with extended boolean turned on): @dateField 2010-04-05 And get back every document that has the date field of the fifth of April. Is there a way to do this?... more »
|
|
|