sphinx

Is there any CLI or GUI client for Sphinx searchd? Something like mysql query browser.

I need some tool which would allow me to run Sphinx queries. Sphinx provides search, a command line program which does the thing. However, search is reading Sphinx files and I need something what would connect to searchd instead. Do you know any tools I could use? ...

Is there a way to fetch max and min values in Sphinx?

Hello, Im using sphinx for document search. Each document has list of integer parameters, like "length", "publication date (unix)", popularity, ... . The search process itself works fine. But is there a way to get a maximum and minimum fields values for a specified search query? The main purpose is to generate a search form which wil...

Sphinx Delta Indexing issue

I have created delta indexes. and merging them using following commands sudo /usr/local/sphinx/bin/indexer --merge messagecenter_quotations_reply messagecenter_quotations_reply_delta --rotate But It only merges if I restart sphinx. if i run this command with out restarting sphinx I do not get any results . ...

Associations issue with Thinking Sphinx plugin for Rails

Hi, I have many sphinx_scopes in my application's models, but one of them doesn't work, I think it's because the odd way Sphinx store the associated values. As an example I will show some key pieces of my Product class model, product.rb: ... belongs_to :partner # And partner belongs to city ... define_index do ... has partner.cit...

how to set the path in this file

im using Sphinx and i have configured my gammar model path which is build\class\FYP but in my configuration file i just wanted to put FYP in the configuration component as follow <component name="jsgfGrammar" type="edu.cmu.sphinx.jsapi.JSGFGrammar"> <property name="dictionary" value="dictionary"/> <property name="grammarLocat...

Including Rails ActiveRecord methods in Sphinx searches

I'm using Thinking Sphinx to power the search on my Rails application. I know the guide explicitly says that you can't index model methods, but I would like to. Specifically, I have a model whose instances can be tagged through a has_many_through relationship via acts_as_taggable_on_steroids. The important caveat: the model also nests ...

Sphinx wildcard searching won't work

I have used the following code: function searchSphinx2($tofind,$jobtype_id,$payper_id,$onetimeBounds) { $this->load->library('session'); $this->load->library('sphinxclient'); global $result; global $functionresult; $functionresult=array(); $this->sphinxclient->setServer('localhost'...

Can I use a delta index with sphinx to update existing records?

Could I add a boolean field to my database data called something like "updated" and if it is true (which it would be for updated or added records) reindex it in my delta index? The reason I ask is that I believe my index for updated records would be in my main and delta indexes. Edit: Looks like I could do this if I had a killlist that ...

help with rails and thinking sphinx for search

It's weird I can build a model from scratch and get my model to work using two search fields body and title but then when I rebuild with a more custom model it doesnot work. When I do a .script/console i have this for the working model Post.search 'foobar' => [#] but whenI use my custom model with .script/server I ge...

PHP find relevance

Hi, Say I have a collection of 100,000 articles across 10 different topics. I don't know which articles actually belong to which topic but I have the entire news article (can analyze them for keywords). I would like to group these articles according to their topics. Any idea how I would do that? Any engine (sphinx, lucene) is ok. ...

Thinking Sphinx configuration fails - cannot connect to mysql through socket, despite socket existing!

When I run rake ts:conf, I get "Can't connect to local MySQL server through socket '/var/run/mysqld/mysql.sock' (2)" This socket file does exist. ...

saving search terms rails thinkingsphinx

I use TS for full text search in my rails app. I am trying to save the search term to present "most searched" type list in my app. Here is my search controller index action. I notice that with the "save" the search feature the search takes about 1.28s and without it about 1.04s. Couple of questions. 1- Is there a better way to do this,...

Sphinx/Solr/Lucene/Elastic Relevancy

Hey, We have an extremely large database of 30+ Million products, and need to query them to create search results and ad displays thousands of times a second. We have been looking into Sphinx, Solr, Lucene, and Elastic as options to perform these constant massive searches. Here's what we need to do. Take keywords and run them through t...

Sphinx + NoSQL Help

Hey, So I'm looking to run Sphinx over a NoSQL system such as MongoDB, HBase, Cassandra, etc. Right now, we're comparing all the NoSQL systems out there. Basically, we need to query 50+ Million rows of product data with fulltext searches thousands of times a second, so we're trying to find the most efficient NoSQL system. Here is our ...

Using Sphinx for documenting projects and modules on demand

Hello: I use Sphinx for documenting a Python module. I have a master doc directory, where I put individual *.rst files (on for each module component) to be included in the index.rst main file. That works great (please check the source of the Python Library Reference to see exactly how I do it). My problem is when I need to create a sta...

charset_table doesn't work for Sphinx RT indexes?

Hello, I'm using Sphinx 1.10.1. I created an RT index and configured its charset as follows: charset_type = utf-8 charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F, U+00E1->a According to that, "á" character should be accepted and translated into "a". However, index does not accept "á" characters. ...

Python assertion error, converting string to int

Hey, I am trying to rewrite my lib written in PHP into python. It handles all sphinx requests. In the init function, I am trying to set default search and match modes, but I have run into a little problem. I get the modes from a config file. In PHP, you need to use a constant as an input: $this->sphinx->SetMatchMode(constant($this->c...

Search term suggestions

This question has been asked in various ways before, but I'm wondering if people who have experience with automatic search term suggestion could offer advice on the most useful and efficient approaches. Here's the scenario: I'm just starting on a website for a book that is a dictionary of terms (roughly 1,000 entries, with 300 word exp...

Kohana 3 - SphinxQL Configuration

Hey everyone, I have Sphinx up and running on my server and I have created an index of my data. I have installed SphinxQL into my modules folder and enabled it in my bootstrap. Is there something else that I need to have done or to do to? I have also moved a copy of the sphinxql.php config file into the kohana/application/config di...

What's the best way to include a PDF in my Sphinx documentation?

I have a PDF that has some in depth explanation for an example in the Sphinx documentation for a package I have. Is there a way to easily include the PDF in my project (and have it copy over when I build the docs)? I tried linking to it with :doc: but this did not copy it over. ...