django-sphinxql | Sphinx search in Django | SQL Database library
kandi X-RAY | django-sphinxql Summary
kandi X-RAY | django-sphinxql Summary
Django-SphinxQL implements Sphinx search for Django, thanks for checking it out. Django is a Web framework for building websites with relational databases; Sphinx is a search engine designed for relational databases. Django-SphinxQL defines an ORM for using Sphinx in Django. As corollary, it allows you to implement full text search with Sphinx in your Django website.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Outputs the Sphinx configuration
- Return the formatted representation of this node
- Format the parent
- Format the params as a string
- Create a new search query using the given conditions
- Convert other type to SQL expression
- Filter the query
- Parse a lookup clause
- Configure the Sphinx index
- Returns an indexer configuration
- Configure the searchd configuration
- Build an index configuration
- Set the order_by
- Resolve the column based on the field value
- Clone the query set
- Searches the queryset
- Sets an order_by
- Reindex the Sphinx indexer
- Call a subprocess
- Return the number of results
- Return a clone of the search query
- Searches the query
- Show indextool statistics
- Return the SQL representation of the function
django-sphinxql Key Features
django-sphinxql Examples and Code Snippets
from sphinxql import indexes, fields
from myapp import models
class DocumentIndex(indexes.Index):
my_summary = fields.Text(model_attr='summary')
my_text = fields.Text(model_attr='text')
my_number = fields.Integer(model_attr='number')
export VERSION=2.2.10
wget http://sphinxsearch.com/files/sphinx-$VERSION-release.tar.gz
tar -xf sphinx-$VERSION-release.tar.gz
cd sphinx-$VERSION-release
./configure --prefix=$HOME --with-pgsql
make
make install
pip install git+https://github.com/jo
Community Discussions
Trending Discussions on django-sphinxql
QUESTION
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
...ANSWER
Answered 2018-Mar-05 at 11:47For foreign key fields in Sphinx we can use double underscores(__) to point to specific field for indexing. User model_attr
for this
In above example
class Model1Index(indexes.Index):
name = fields.Text(model_attr='name')
caption = fields.Text(model_attr='model2__caption')
class Meta:
model = Model1
settings.INDEXES['source_params'] = {'sql_field_string': ['name'],}
can be defined.
Reference http://django-sphinxql.readthedocs.io/en/latest/indexes.html
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-sphinxql
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page