sphinx

How should I handle Sphinx configuration in version control?

I have a problem with my development workflow and Sphinx. I want to keep configuration file for Sphinx in version control so it's easier to manage. This means it's easier to link the file to code updates, etc ... However, the configuration file is stored in /usr/local/etc. There are two solutions I can think of. Store the file in the r...

Distributed Search Issues - Max number of local indexes

Hi, I'm running 1.10-beta and have a distributed index setup. There are 4 base chunks and 4 delta chunks making the dist index look like this: index dist_idx { type = distributed local = b_0 local = b_1 local = b_2 local = b_3 local = d_0 local = d_1 local = d_2 lo...

Sphinx setFilter() kills all results

I have sphinx installed for my search engine, and it works great, but now I'm trying to add a few extra features to the search using setFilter() which should allow me to do WHERE/AND clauses, but whenever I try a search, it returns no results when there should. This is my working code: require_once ( "sphinxapi.php" ); $cl = new Sphi...

Sphinx Building Index Improvement

Hey guys, I have a question about Sphinx. I use Sphinx to index the full-text searches for my sites, and it works like a dream. At this point in time it takes about 30 minutes to create the indexes for all my databases. This is fine as I only run the indexing script once every hour. But the databases are getting bigger quickly, and soon...

Setting up Sphinx on development servers?

We're trying to get Sphinx to index all three of our servers (development, staging and live) across all three databases, putting them each into seperate indexes for testing etc. My question is: How do we setup the queries in Codeingniter (PHP) so the staging and development server make calls to the right index? Thanks in advance! ...

How to send a package to PyPi?

hi, i wrote a little module and i would like to know what are the basic steps to package it in order to send it to pipy: what is the file hierarchy? how should i name files? should i use distutils to create PKG-INFO? where should i include my documentation (made with sphinx)? ...

Sphinx Configuring Multiple Sources

We have a modular site and would like to setup searching by module. For example, we have modules: news, customers, inventory So if the user is on the news module and they do a search, the results should only be from the news table. I've been reading Sphinx documentation but haven't seen if this is possible or not. We are using PHP an...

Thinking-Sphinx doesn't index anything.

My environment: Mac OSX 10.6 Snow Leopard Ruby 1.9.2p0 Rails 3.0.0 thinking-sphinx (2.0.0.rc1) Sphinx 0.9.9-release (r2117) So far I haven't really been able to get anything to work. pma:log pma$ rake thinking_sphinx:index (in /Users/pma/Sites/urban-ent) DEPRECATION WARNING: Rake tasks in /Users/pma/Sites/urban-ent/vendor/plugins/yam...

Python Sphinx autodoc and decorated members

I am attempting to use Sphinx to document my Python class. I do so using autodoc: .. autoclass:: Bus :members: While it correctly fetches the docstrings for my methods, those that are decorated: @checkStale def open(self): """ Some docs. """ # Code with @checkStale being def checkStale(f)...

Sorting results in sphinx?

Is there an easy way to sort sphinx results? Recently posted (by dates) Highest paid (highest value) ...

Sphinx Search Engine & Python API

I am trying to use Sphinx Search Engine with their Python API. The installation went fine. But when I use their Python API I do not get the complete result set. I only get the ID's? But when I use their ./search binary in ./bin I get the entire indexed content. When using cpp ./search binary - ./search test 1. document=1, weight=1, gr...

How did the sphinx calculate the weight?

Note: This is a cross-post, it is firstly posted at the sphinx forum,however I got no answer, so I post it here. First take a look at a example: The following is my table(just for test used): +----+--------------------------+----------------------+ | Id | title | body | +----+----------------------...

sphinx, restructuredtext: set color for a single word

Hi, Is there a way to set the color of single words (or characters) in sphinx? I'm pretty sure there should be some markup tag, like HTML's font tag. Thanks, Adam ...

How to search heterogenous indices using @@relaxed??

Hello, In the documentation I read that I can suppress the error message by specifying the @@relaxed option at the beginning of the query. If for example I have this scenario: Search 'Desalination' in all fields Also search 'manila tokyo oxford amsterdam' in locations field , where locations field is not present in all indices. Also s...

Sphinx, set exact matches for each record?

So I've been using Sphinx with a rails project lately, I want to provide a list of 'would be' exact matches that would match 100% with a give term. For example something like: +==================+==========================================================+ | ingredient | exact matches | +=...

Bidirectionality in html

Using Sphinx, I'm editing pylearn documentation content at https://bitbucket.org/omidraha/pylearn/. All paragraphs are Right-to-Left (because of Persian language) and code samples between text, rendered incorrectly. Generally I'm looking for a way to apply bi-directionality algorithms of unicode or microsoft on a web page. Is there...

How to do attribute matching in (thinking) sphinx extended2 mode?

I have this expression which is working as expected in Thinking Sphinx: Customer.search :with => {:signer_id => 23} but I need to write an expression with OR of some attributes, like signer_id is 23 or admin_level is 42, so I moved to extended match mode and wrote this: Customer.search "@signer_id 23", :match_mode => :extended2 whi...

search with a combination of structured criteria and freetext keyword/phrase - NOSQL vs Lucene/Sphinx

Hi all, we have a eMall application based mainly around a ~500k rows MySQL master table (with detail tables storing non searchable fields and other related tables with shop info etc). Users can today search based on specific structured product data (e.g. brand, category, price, specific shop etc). We would also like to support keyword...

How do I connect sphinx's autodoc-skip-member to my function?

I want to use sphinx's autodoc-skip-member event to select a portion of the members on a certain python class for documentation. But it isn't clear from the sphinx docs, and I can't find any examples that illustrate: where do I put the code to connect this? I see Sphinx.connect and I suspect it goes in my conf.py, but when I try variati...

In Sphinx, how can I create a linkable "terminology" section without massive overhead?

I want to create a "terminology" section with definitions for terms that I'm using such that every time I use the terms in this terminology section, a link is created that points to the definition. Currently, the best I can think up is: .. |flavor| replace:: `:ref:flavor` .. _flavor: flavor ------ blah blah blah Then later, in the ...