sphinx

Python Sphinx Documentation

How can you use Sphinx for Python 3.x documentation? http://doc.python.org/3.1 seem to have managed it. ...

find documents having no value for sql_attr_multi attribute (Sphinx)

in my sphinx source config I have an attribute like so: sql_attr_multi = uint categories from query; SELECT entry_id, cat_id FROM categories_entries When querying the sphinx index, is it possible to get only records that do not have a category attribute? As a kludgy fix I have executed a query on the database to find all potential ca...

Spider that tosses results into mysql

Looking to use Sphinx for site search, but not all of my site is in mysql. Rather than reinvent the wheel, just wondering if there's an open source spider that easily tosses its findings into a mysql database so that Sphinx can then index it. Thanks for any advice. ...

Sphinx without using an auto_increment id

I am current in planning on creating a big database (2+ million rows) with a variety of data from separate sources. I would like to avoid structuring the database around auto_increment ids to help prevent against sync issues with replication, and also because each item inserted will have a alphanumeric product code that is guaranteed to ...

php, search in chinese and russian

Eventually, I'm creating a website on three languages: english, russian and chinese. I hope that if I use UTF-8 in application and database, there won't be any problems with input-output (will there?) But the most frightening part of it is a search. It should be cool enough. It should be full-text, it should index, etc. I hope it will u...

How do I automatically rebuild the Sphinx index under django-sphinx?

I just setup django-sphinx, and it is working beautifully. I am now able to search my model and get amazing results. The one problem is that I have to build the index by hand using the indexer command. That means every time I add new content, I have to manually hit the command line to rebuild the search index. That is just not acceptable...

using sphinx search with mongodb as datasource

hello, we decided to use mongodb for some web application (instead of mysql) but want to stay with sphinx for indexing/searching all data stored in mongodb. as the mongodb object-id is a hash per default -- and we want to stay with this -- now there's one problem in using sphinx. as it says in the sphinx documentation: ALL DOCUMENT IDS...

Sphinx (documentation tool): set tab width in output

How do you set tab width in HTML output of Sphinx code snippets highlighted by Pygments? By default it is the annoying 8, but I want 4. Did not find a word about this setting in Sphinx conf.py. ...

Location of Sphinx sources for my notes

How can you fix the Sphinx's warning at the bottom? I am trying to have my Python notes in Sphinx. I have my notes in separate files at the same directory level as the index.rst. I get the following warnings after building HTML The warning /home/heo/S_codes/trig_functions.rst:: WARNING: document isn't included in any toctree in Th...

editors for tables in Sphinx/reStructuredText?

I'm looking at using Sphinx / reStructuredText for documentation, and it looks very promising, except tables look like a pain to do. Is there an editor that can help? ...

sphinx and one-to-many associations

The examples I've seen for sphinx search don't really use joins. If I had a schema like this (one book has multiple reviews), create table book ( id int auto_increment, title varchar(200), summary longtext ); create table reviews ( id int auto_increment, book_id int, review longtext ); What sort of query should I give to sphinx so tha...

sphinx is returning stale results

Environment: Memcached, Rails 2.2.2 + cache_money, Sphinx + thinking sphinx The following yields stale results: - add a record; mysql contains the correct data - the record is probably cached in memory at this point - re-index sphinx - sphinx returns the proper result with the correct data - edit the record - the cache is invalidated p...

Sphinx for php code documentation

Sphinx is a Python library to generate nice documentation from a set of ReST formatted text files. Not the tool used for full-text searching I'm also fully aware of doxygen / phpdoc tools. I'm trying to figure out if there is a way of using Sphinx to document php projects? or even any other non-python languages? http://sphinx.pocoo.or...

force unpacking of certain egg directories

I have an egg distribution of a PyQt application which i build myself, and it contains sphinx generated documentation. When i call the help file from the application it opens the sphinx index.html in a QtWebKit.QWebView window. Apparently, only the index.html file is extracted from the egg into the OS's egg-directory (e.g. [..]\Applicati...

Sphinx related question

How can I get all the records from the index using Sphinx? Just like a SELECT * FROM index ? I know that I can do something like this in order to get all the records matching a specific keyword: /usr/local/sphinx/bin/search keyword, but what I want to do is to get all the records from the index. ...

How can I make sure the Sphinx daemon runs?

I'm working on setting up a production server using CentOS 5.3, Apache, and Phusion Passenger (mod_rails). I have an app that uses the Sphinx search engine and the Thinking Sphinx gem. According to the Thinking Sphinx docs... If you actually want to search against the indexed data, then you’ll need Sphinx’s searchd daemon to be ...

Acronyms with Sphinx search engine

how can i index acronyms like 'm.i.a.'? when i search for 'mia', i get results for 'mia' and not 'm.i.a.'. when i search for 'm.i.a.', i get nothing at all. edit: solution looks roughly like: ignore_chars = -, . ...

Sphinx delta indexing -- still necessary to rebuild the main index?

I've been reading up on the Sphinx search engine and the Thinking Sphinx gem. In the TS docs it says... Sphinx has one major limitation when compared to a lot of other search services: you cannot update the fields [of] a single document in an index, but have to re-process all the data for that index. If I understand correctly, that...

how to use sphinx in rails and exclude results based on a column value

I have a simple query to show users that are active, but somehow it is still showing inactive users. I am using sphinx. The query looks like: User.search keywords,:conditions=>conditions, :match_mode=>:boolean, :order =>sort_order.to_s, :page => page,:per_page =>per_page the conditions hash looks like this: conditions = {:is_expired...

Sphinx randomly fails to combine subqueries

I have this sphinx search engine that I use through Zend using sphinxapi.php . It works fantastic. Really really great. However, there is one problem: It randomly fails. // Prepare Sphinx search $sphinxClient = new SphinxClient(); $sphinxClient->SetServer($ip, $port); $sphinxClient->SetConnectTimeout( 10 ); $sphinxClient-...