sphinx

thinking sphinx error when rake thinking_sphinx:start

淺唱寂寞╮ 提交于 2019-12-08 18:40:30
I am using gem 'thinking-sphinx', '2.0.10' for search functionality.I am following http://railscasts.com/episodes/120-thinking-sphinx tutorial for this. script/plugin install git://github.com/freelancing-god/thinking-sphinx.git rake thinking_sphinx:index These 2 steps executed without any problem,but when i did rake thinking_sphinx:start it was giving following error : Failed to start searchd daemon. Check /home/user/newsvn/alumnicell/log/searchd.log. Failed to start searchd daemon. Check /home/user/newsvn/alumnicell/log/searchd.log I searched on net about this but even trying many solutions i

How to query Sphinx for an exact matching phrase?

两盒软妹~` 提交于 2019-12-08 17:13:33
问题 It seems that Sphinx is searching the documents word by word. I don't know how to search the documents for an exact phrase. I tried SPH_MATCH_ALL , SPH_MATCH_PHRASE but all search the documents word by word. I'm using it in my PHP application. How do I query Sphinx to match an exact string? Here's my code: $sphinx = new SphinxClient(); $mode = SPH_MATCH_PHRASE; $sphinx->setServer('127.0.0.1', 9312); $sphinx->setLimits(0,1); $sphinx->setMaxQueryTime(5000); $sphinx->setMatchMode($mode); $sphinx

Is the Sphinx beta okay to use in production?

百般思念 提交于 2019-12-08 13:48:03
问题 I'm having to recompile Sphinx (thanks to this issue – if you can help I'd be impressed!). Is the Sphinx beta ready for use in a production environment? I know that Sphinx 0.9.9 has been feature-frozen for a long time, and the Sphinx beta has a number of really wonderful features. But beta is scary . Do I have anything to worry about? 回答1: From this page: http://sphinxsearch.com/downloads.html It said: Note that 'beta' only applies to new features (RT indexes etc), everything else is stable.

Get 50 random rows from Sphinx query

徘徊边缘 提交于 2019-12-08 12:50:53
问题 I have a PHP website using Sphinx by sphinxClient lib . My Sphinx query has some filters and a limit of 2500 rows. From the 2500 rows (could be less), I want to fetch just 50 random rows. Is there a way to do it using only Sphinx? Edit: The original query already sorted by the popularity of the rows, the main idea is to get 50 random products from the 2500 most popular. Because of that I can't sort by random 回答1: See SPH_SORT_EXTENDED . There is a @random sort order http://sphinxsearch.com

thinking sphinx automatic indexing

喜欢而已 提交于 2019-12-08 12:18:59
问题 How can I do automatic indexing for thinking sphinx or it will keep on indexing new records (added/deleted) automatically. Or I have to run rake ts:index as per my needs like after 2hours or after 1 day. If I have to run, whats the best way to do that? 回答1: To reindex periodically, use whenever : http://railscasts.com/episodes/164-cron-in-ruby 来源: https://stackoverflow.com/questions/6844251/thinking-sphinx-automatic-indexing

Searching for hash tag via thinking sphinx

大兔子大兔子 提交于 2019-12-08 11:13:16
问题 Is it possible to search hash tag via thinking_spinx? Can't find solution. Need to find all titles with hash tag only: "title#text","#text", etc. 回答1: You'll want to make sure Sphinx is indexing the hash character - which is done via the charset_table setting. Thinking Sphinx finds this value in config/sphinx.yml (create it if you haven't already), which is set up via environments, much like config/database.yml . development: charset_table: "0..9, A..Z->a..z, _, a..z, \#, U+410..U+42F->U+430.

Perform an empty query with filters in Sphinx

僤鯓⒐⒋嵵緔 提交于 2019-12-08 08:56:25
问题 I wanted to retrieve data from Sphinx without a query keyword but with filters from other attributes. These other attributes are integers. Here are the attributes of our index: id - Integer keyword - String keyword_ord - Integer words - Integer results - Integer We have approximately 300 Million keywords in our table and we tried to solve this issue by using an empty query in Sphinx (note: we are using PHP and MySQL). Suppose we wanted to get the keywords which have 3 to 6 words in it and

Some questions related to SphinxSE and RT indexes

↘锁芯ラ 提交于 2019-12-08 08:32:31
问题 I consider using Sphinx search in one of my projects so I have a few questions related to it. When using SphinxSE and RT index, every UPDATE or INSERT in the SphinxSE table will update the index, right? No need to call indexer or anything? Can I search on both tags (user entered keywords for a document) and the content and give more relevance to the tag matches? And if it's possible how do I implement the tag search (now I have them in separate tables like an inverted index) For the fillter

how to get all column value from sphinx by configuration file php

馋奶兔 提交于 2019-12-08 04:35:58
问题 i want to know how to get all column value from table using sphinx search... i have configuration file, that file can get only one field from table. but i need all field value. where will i modify for getting all field from table. thanks and advance... 回答1: Sphinx will only return the document id, weight and attributes. Use MySQL to get the rest of the values. Do a Sphinx search, which will give you a list of document IDs For every document ID, do a MySQL query which gives you the values for

Is there a better way to get data from two tables at once with Sphinx/MySQL?

无人久伴 提交于 2019-12-08 03:13:46
问题 Before asking this question it is important to understand what it is I am actually doing. The best comparison to the feature I am implementing would be Facebook's search feature. When you begin typing a drop down list appears with various search results. At the top you will find your friends whose names match your search, then other people who match, then pages, events etc.... My situation is similar however I only want to search for two things. users and documents (named ripples in the code