sphinx

Not able to start Sphinx Search- error 1067

非 Y 不嫁゛ 提交于 2019-12-14 02:32:16
问题 I am trying to install the Sphinx Search Server. I followed the steps given here http://itsonrail.wordpress.com/2010/05/23/installing-sphinx-on%C2%A0windows/ I added C:\Sphinx\bin to environment path and Sphinx Search is listed in the Services panel. When I try to start it, this error occurs: Windows could not start SphinxSearch service on local computer Error: 1067 The process terminated unexpectedly. Please help me solving this problem. Thanks in advance. I trid this http://sphinxsearch.com

Select Union in SphinxQL?

十年热恋 提交于 2019-12-13 21:23:54
问题 Is it possible to do any sort of Union using SphinxQL ? I want to return one set of results containing two queries and in order of the query. A simple example would be: Select Author from idx_jobs where MATCH('@(Author) Steinbeck') Union Select Author from idx_jobs where MATCH('@(Description) Steinbeck') Naturally I could do Select Author from idx_jobs where MATCH('@(Author, Description) Steinbeck') but I'm trying to provide some control over 'relevance' in the results. 回答1: No union. But

How do I use sphinx search with PHP?

北战南征 提交于 2019-12-13 08:28:30
问题 I am still a programming newbie, please keep that in mind. I installed SphinxSearch on Linux Mint. I followed instructions from a Digital Ocean tutorial. I created a configuration file (sphinx.conf) as follows: source mySource{ type = mysql sql_host = localhost sql_user = root sql_pass = mypass sql_db = test sql_query = SELECT id, uname FROM users sql_attr_uint = id sql_attr_string = uname sql_port = 3306 } index test{ source = mySource path = /var/lib/sphinxsearch/data docinfo = extern }

Can Sphinx search engine do a NOT AND filter?

喜欢而已 提交于 2019-12-13 08:02:03
问题 Suppose I have a Sphinx index with the following boolean attributes: narrow tall I want to filter all the documents that are NOT (narrow AND tall) . Can this be done with Sphinx? If it makes any difference I'm using the Python sphinxapi.py . 回答1: Ok, with attributes, you can create a 'virtual' attribute and then filter on that. .setSelect("*, (tall=1)+(narrow=1) as tallnarrow") .setFilter("tallnarrow", [2], true) 来源: https://stackoverflow.com/questions/29018778/can-sphinx-search-engine-do-a

Relation won't index

旧城冷巷雨未停 提交于 2019-12-13 06:58:33
问题 I'm having some problem indexing one of my models. Here is my model: class Model < ActiveRecord::Base define_index do # ... has tracker.open, as: :open, type: :boolean has source.priority, as: :priority, type: :integer # ... end belongs_to :tracker belongs_to :source end I'm running this to index the model: rake thinking_sphinx:index --trace Here is the error: undefined method `priority' for #<ThinkingSphinx::Source:0x00000106ae1738> Anyone knows why the tracker relations works, but not the

Indexing files with SPHINX/ultrasphinx

拜拜、爱过 提交于 2019-12-13 05:49:22
问题 I am developing an application which will scrape data from websites. The details like page_url, site_url, last_modified will be stored in the database and page_content will be stored in the file. Later on I want to search the content of the file. I am trying to Thinkingsphinx to achieve this. Does any body have an idea how to implement it ? 回答1: I don't believe Sphinx / ThinkingSphinx is right for you as they are intended to talk to databases. Take a look at this thread: http://groups.google

CRC32 on integer in Sphinx

三世轮回 提交于 2019-12-13 03:48:17
问题 I am trying to use CRC32 to to randomize results in a Sphinx query which already has several nested orders e.g. Select CRC32(Field) as Random from Index Order by Premium,Weight(),Random However, the only unique field I have is a reference . It is an integer so randomizes via CRC32 as 0 . I selected it in my Sphinx Config Select... reference as Randomizer... and then specified it as a string so I could use it in the select: sql_field_string = Randomizer So it would be 'converted' to text.

sphinx search AssertionError error in Python

狂风中的少年 提交于 2019-12-12 21:49:58
问题 I am trying ro run sphinx search with python but getting error I try this code python3 import sphinxapi client = sphinxapi.SphinxClient() client.SetServer('127.0.0.1',9312) client.Query("english","language_index") get an error client.Query("english","language_index") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.4/dist-packages/sphinxapi/__init__.py", line 579, in Query assert (len(self._reqs) == 0) AssertionError 来源: https://stackoverflow

Indexing Euro (€) and Lb (£) in Sphinx

早过忘川 提交于 2019-12-12 06:00:11
问题 These don't seem to index, even when I explicitly add them to my charset_table: charset_table=... U+20AC->U+20AC, U+00A3->U+00A3 I even tried mapping them to the dollar sign U+0024->U+0024, U+20AC->U+0024, U+00A3->U+0024 Yet in each case they are unrecognized in other words MATCH('£1000') will not find 'cost is £1000' and if I try to map to $ as per the second example then MATCH('$1000 )` will not either. If I do a MySQL Search however where field like '%£%' I do get records leading me to

Sphinx search sql_attr_multi - where condition

梦想的初衷 提交于 2019-12-12 05:52:53
问题 I need to set an index. sql_attr_multi = uint categories from query; SELECT item_id, category_id FROM connections WHERE value=2 It works fine If I set the value static. That value is a variable so I want to assign it through a filter but it doesn`t work because I want to filter "sql_attr_multi" not the $sql. $cl->setFilter("value", array(2)); Thanks 回答1: setFilter has to do only with searching ( searchd process ). It's a filter applied to an attribute. The categories sql_attr_multi attribute