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
1
vote
1 answer

django-sphinx battery support python3

I'm trying to install django-sphinx using pip-3.2 but I have syntax error. Please, tell me how to install django-sphinx with Python 3.2. i download sphinx deb package from from http://sphinxsearch.com/downloads/release/ install : dpkg -i…
ijj
  • 189
  • 1
  • 11
1
vote
1 answer

Django Query only one field of a model using .extra() and without using .defer() or .only()

I'm using django ORM's exact() method to query only selected fields from a set of models to save RAM. I can't use defer() or only() due to some constraints on the ORM manager I am using (it's not the default one). The following code works without…
Lucas Ou-Yang
  • 5,505
  • 13
  • 43
  • 62
1
vote
1 answer

Querying multiple index in django-sphinx

The django-sphinx documentation shows that django-sphinx layer also supports some basic querying over multiple indexes. http://github.com/dcramer/django-sphinx/blob/master/README.rst from djangosphinx.models import SphinxSearch SphinxSearch('index1…
avenger
  • 131
  • 2
  • 11
1
vote
1 answer

db_index and unique=True on OneToOne relationship

I'm extending django's User model. from django.contrib.auth.models import User class UserProfile(models.Model): user = models.OneToOneField(User, _(u"User")) so, is it possible to use db_index=True and unique=True with user field? and then I…
oleg.foreigner
  • 993
  • 2
  • 13
  • 28
0
votes
1 answer

how to install django-sphinx-autodoc

i have found this django apps django-sphinx-autodoc in http://pypi.python.org/pypi/django-sphinx-autodoc ... I can't find the docs on how to install it do anyone knows how to install this app?
gadss
  • 21,687
  • 41
  • 104
  • 154
0
votes
1 answer

How to use Djangosphinx

I have installed djangosphinx, but such commend 'generate_sphinx_config' is not able to be found. And I use sphinx beta2.0.1, but what is this version number of sphinx beta2.0.1 Note: You will need to install the sphinxapi.py package into your…
Haoran Wang
  • 211
  • 2
  • 5
0
votes
3 answers

How do I give more weight to newer articles in Sphinx search?

I have a Sphinx search on a django site that is running very well. It finds excellent matches for all sorts of queries. I would like to be able to give a boost in ranking to newer results. Quite often articles that are many years old will rank…
Apreche
  • 30,042
  • 8
  • 41
  • 52
0
votes
1 answer

How do I get 64 bit ids to work with Sphinx search server 0.9.9 on Mac OS?

I've been using Sphinx successfully for a while, but just ran into an issue that's got me confused... I back Sphinx with mysql queries and recently migrated my primary key strategy in a way that had the ids of the tables I'm indexing grow larger…
royal
  • 530
  • 1
  • 6
  • 12
0
votes
1 answer

How to use two models for single index search in sphinx-django

I'm using django-sphinxql for search requirements in my django project. I want to use two models in my app for search with some query. Models look as below Class Model1(models.Model): name = models.CharField(max_length=50) model2 =…
Uday Swami
  • 395
  • 8
  • 22
0
votes
1 answer

django-sphinx BuildExcerpts

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_options(passages=True, passages_opts={ 'before_match':"
imns
  • 4,996
  • 11
  • 57
  • 80
0
votes
1 answer

python sphinx documentation

Can any one tell me how can this project be used for documentation purpose http://sphinx.pocoo.org I have successfully installed it on my CentOS machine .After installation The Readme file says to run sphinx-quickstart and root for documentation…
Rajeev
  • 44,985
  • 76
  • 186
  • 285
0
votes
1 answer

django-sphinx: SphinxClient instance has no attribute 'SetFieldWeights'

In my models, when I refer to SphinxSearch with defaults like: from djangosphinx.models import SphinxSearch class Blog(models.Model): ... search = SphinxSearh() the fulltext search works fine. But when I give weights attribute as…
onurmatik
  • 5,105
  • 7
  • 42
  • 67
0
votes
1 answer

Django Sphinx Text Search

I am trying out Sphinx search in my Django project. All setup done & it works but need some clarification from someone who has actually used this setup. In my Sphinx search while indexing, I have used 'name' as the field in my MySQL to be searchable…
Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
0
votes
1 answer

Create Django sphinx single page html?

I created sphinx html using command make html.But i need a single page document with heading and content.When i click a particular heading page should automatically scroll down to that corresponding content.
akhil viswam
  • 496
  • 9
  • 24
0
votes
1 answer

how to create .rSt files in django sphinx?

.. Documentation_hexnode documentation master file, created by sphinx-quickstart on Mon May 09 14:24:54 2016. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Frequently Asked…
akhil viswam
  • 496
  • 9
  • 24