search for: searchphrase

Displaying 3 results from an estimated 3 matches for "searchphrase".

2006 Jun 07
5
little Live search problem
Works fine but when you use backspace or delete on the search word and it hits 0 characters it displays ALL the Test names in the database! def live_search @phrase = request.raw_post || request.query_string a1 = "%" a2 = "%" @searchphrase = a1 + @phrase + a2 @results = Test.find(:all, :conditions => [ "test_name LIKE ?", @searchphrase]) @number_match = @results render(:layout => false) end -- Posted via http://www.ruby-forum.com/.
2010 Dec 01
2
Are stub databases still supported in 1.0.21?
...mega/data/default The stub file "default" is a text file that contains the following: auto /var/lib/xapian-omega/data/db1 auto /var/lib/xapian-omega/data/db2 auto /var/lib/xapian-omega/data/db3 Using the following returns nothing: /usr/lib/cgi-bin/omega/omega 'DB=default' 'P=searchphrase' 'FMT=xml' While the following returns hundreds of results: /usr/lib/cgi-bin/omega/omega 'DB=db1' 'P=searchphrase' 'FMT=xml' Neither return any errors. I'm already delving into the core code to find the problem but I would like to confirm that it's not...
2012 Dec 30
1
combining databases for omega
From the documentation I've read, omega can read from multiple databases, but I'm not sure how to go about this. I have three databases created using omindex, currently located at /var/lib/xapian-omega/data/share, /var/lib/xapian-omega/data/users, and /var/lib/xapiax-omega/data/management The quickstart guide says that in omega.conf database_dir should point to the directory