sphinx

Sphinx Search Index

谁说胖子不能爱 提交于 2019-12-23 01:46:27
问题 I'm having an issue with a Sphinx Search Index. I keep getting empty result sets from it. source mrc { type = mysql sql_host = localhost sql_user = root sql_pass = sql_db = test_db sql_port = 3306 mysql_connect_flags = 32 sql_query_pre = SET NAMES latin1 sql_query_pre = SET SESSION query_cache_type=OFF sql_query_pre = REPLACE INTO sphinx.indexer (idx,server,version,lastrun_at) SELECT 'mrc','localhost','2.0.4',UNIX_TIMESTAMP(NOW()) FROM DUAL sql_query_post = UPDATE sphinx.indexer SET fetched

Sphinx Search Index

不羁的心 提交于 2019-12-23 01:46:02
问题 I'm having an issue with a Sphinx Search Index. I keep getting empty result sets from it. source mrc { type = mysql sql_host = localhost sql_user = root sql_pass = sql_db = test_db sql_port = 3306 mysql_connect_flags = 32 sql_query_pre = SET NAMES latin1 sql_query_pre = SET SESSION query_cache_type=OFF sql_query_pre = REPLACE INTO sphinx.indexer (idx,server,version,lastrun_at) SELECT 'mrc','localhost','2.0.4',UNIX_TIMESTAMP(NOW()) FROM DUAL sql_query_post = UPDATE sphinx.indexer SET fetched

Using crc32 tweak on has_many relations in Thinking Sphinx

北城余情 提交于 2019-12-22 18:06:44
问题 It's weird actually. I have two models that have has_many relation each other, here are my models #model city class City < ActiveRecord::Base belong_to :state end #model state class State < ActiveRecord::Base has_many :city end and I have state index ThinkingSphinx::Index.define 'state', :with => :active_record do indexes state_name, :sortable => true #here is the problem has "CRC32(cities.city_name)", :as => :city_name, :type => :integer end I want to use city_name as a filter. My code above

Location of sphinx-build on CentOS

那年仲夏 提交于 2019-12-22 12:37:26
问题 I have a brand new CentOS 6 box and wanted to install sphinx, in order to compile documents as generated by readthedocs.org i.e. rst files. In a previous ubuntu box I was running make html and that would invoke the sphinx-build command and compile the documentation. I downloaded the latest version of sphinx and installed it as such: sudo wget http://sphinxsearch.com/files/sphinx-2.1.9-1.rhel6.x86_64.rpm sudo localinstall sphinx-2.1.9-1.rhel6.x86_64.rpm Everything seems to be fine but sphinx

Sphinx with metaphone and wildcard search

怎甘沉沦 提交于 2019-12-22 11:35:47
问题 we are an anatomy platform and use sphinx for our search. We want to make our search more fuzzier and started to use metaphone to correct spelling mistakes. It finds for example phalanges even though the search word is falanges . That's good but we want more. We want that the user could type in falange or even falang and we still find phalanges . Any ideas how to accomplish this? If you are interested you can checkout our sphinx config file here. Thanks! 回答1: Well you can enable both

Sphinx/Solr/Lucene/Elastic Relevancy

霸气de小男生 提交于 2019-12-22 01:14:58
问题 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 the database to find products that match the closest. We're going to be using our OWN algorithm to decide which products are most related to target our advertisements

Sphinx error: unknown local index “INDEX_NAME” in search request [closed]

妖精的绣舞 提交于 2019-12-21 09:06:16
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . Im using Sphinx 0.9.9-release (r2117) and sphinxapi.php (http://code.google.com/p/sphinxsearch/source/browse/tags/REL_0_9_9_RC2/api/sphinxapi.php). When I testing searching in command shell: "search -i INDEX_NAME

Lucene search results sort by custom order list (unique to each user)

本秂侑毒 提交于 2019-12-21 05:49:10
问题 I have authenticated users in my application who have access to a shared database of up to 500,000 items. Each of the users has their own public facing web site and needs the ability to prioritize the items on display (think upvote) on their own site. out of the 500,000 items they may only have up to 200 prioritized items, the order of the rest of the items is of less importance. Each of the users will prioritize the items differently. I initially asked a similar mysql question here Mysql

How do I add the condition “IS NOT NULL” to a Thinking Sphinx search

谁都会走 提交于 2019-12-21 04:22:14
问题 I'm using Thinking Sphinx for full-text search, following this video. I'd like to do the following: @articles = Article.search(params[:search], :conditions => "published_at IS NOT NULL", :order => :created_at) The problem is that this doesn't work. It seems that the search method only accepts conditions that are a hash. I've tried a couple of ways, but I am clueless as to how I can represent "published_at IS NOT NULL" as a hash... 回答1: Was given the solution over at Railscasts If you want

How do I add the condition “IS NOT NULL” to a Thinking Sphinx search

不羁岁月 提交于 2019-12-21 04:22:03
问题 I'm using Thinking Sphinx for full-text search, following this video. I'd like to do the following: @articles = Article.search(params[:search], :conditions => "published_at IS NOT NULL", :order => :created_at) The problem is that this doesn't work. It seems that the search method only accepts conditions that are a hash. I've tried a couple of ways, but I am clueless as to how I can represent "published_at IS NOT NULL" as a hash... 回答1: Was given the solution over at Railscasts If you want