Hi Tiago Do you only have the one searchd instance running? And are you running script/console for the staging environment? I know, obvious things, but let's start there :)
-- Pat On 24/05/2011, at 4:05 AM, Tiago wrote: > well, if i search through rails for 'anim' as the search binary match > it finds the result. > But it should find it anyway, shouldn't it? > on my local machine it works. > > config_file: "<%= Rails.root %>/files/sphinx/<%= Rails.env > %>.sphinx.conf" > searchd_log_file: "<%= Rails.root %>/log/searchd.log" > query_log_file: "/dev/null" > pid_file: "<%= Rails.root %>/tmp/pids/searchd.<%= Rails.env %>.pid" > min_infix_len: 5 > morphology: libstemmer_pt > searchd_file_path: "<%= Rails.root %>/../../shared/sphinx/<%= > Rails.env %>" > max_matches: 1000 > enable_star: true > > this is my sphinx.yml > > On May 23, 2:25 pm, Tiago <[email protected]> wrote: >> Hello, >> I'm having a problem that I've no clue how to solve. >> Sphinx/Thinking Sphinx were working fine, but suddenly something >> messed it up. I tryed to find in git logs, but everything related to >> it is 4 days old, and it was working by then. >> I guess it's something related to the server. >> Searching through bash, using the search binary I'm able to find >> results. >> But when searching from rails, in the applciation or in the console, I >> aways get 0 results. >> >> This is the log from the application log: >> >> Sphinx Query (18.8ms) animais >> Sphinx Found 0 results >> >> When using console, same thing: >> >> ruby-1.9.2-p180 :001 > ImageGallery.search 'animais' >> => [] >> ruby-1.9.2-p180 :002 > ThinkingSphinx.search 'animais' >> => [] >> >> Using the search binary it works: >> >> $ search -c config/sphinx/staging.sphinx.conf -i image_gallery_core >> 'animais' >> Sphinx 0.9.9-release (r2117) >> Copyright (c) 2001-2009, Andrew Aksyonoff >> >> using config file 'config/sphinx/staging.sphinx.conf'... >> index 'image_gallery_core': query 'animais ': returned 1 matches of 1 >> total in 0.001 sec >> ... >> words: >> 1. 'anim': 1 documents, 3 hits >> >> Did anyone here have some experience like this? >> It brings 0 results for any search I try. >> I've tryed removing all indexes, restarting sphinx, unicorn, even the >> server. > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/thinking-sphinx?hl=en. > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
