Questions tagged [searchlogic]
86 questions
31
votes
8 answers
Full Text Searching with Rails
I've been looking into searching plugins/gems for Rails. Most of the articles compare Ferret (Lucene) to Ultrasphinx or possibly Thinking Sphinx, but none that talk about SearchLogic. Does anyone have any clues as to how that one compares? What…

Matt Grande
- 11,964
- 6
- 62
- 89
10
votes
2 answers
How Do I get searchlogic to work with rails 3?
I put searchlogic in my gemfile... and now my rails server won't start :(
this is the errormessage
gems/ruby-1.8.7-p299/gems/activesupport-3.0.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `merge_joins' for…

tabaluga
- 1,377
- 4
- 20
- 27
8
votes
5 answers
Reusing named_scope to define another named_scope
The problem essence as I see it
One day, if I'm not mistaken, I have seen an example of reusing a named_scope to define another named_scope. Something like this (can't remember the exact syntax, but that's exactly my question):
named_scope…

mxgrn
- 1,733
- 16
- 20
7
votes
5 answers
Combine two named scopes with OR (instead of AND)
I want to find all Annotations whose bodies are either:
Equal to "?"
or
Like "[?]"
What's the best way to do this?
I would like to use SearchLogic if possible, but though SearchLogic allows you to do each of the…

Tom Lehman
- 85,973
- 71
- 200
- 272
6
votes
1 answer
Rails: searchlogic search with or conditions
I'm using the 'binarylogic-searchlogic' gem in version 2.3.5 along with Rails 2.3.4.
What I want to do is performing a search on a model for a specified value over multiple attributes. I achieve this through chaining everything together…

xijo
- 4,366
- 4
- 23
- 30
5
votes
4 answers
5
votes
1 answer
Rails: Stack level too deep error
My rails app has 3 models. Trail, Region and Feature. I am able to interact with these models fine in my lib/tasks directory. I used anemone to crawl and populate the database. Examples of calls I made on the…

theraju
- 461
- 4
- 13
3
votes
2 answers
How can I make a searchlogic named scope return DISTINCT (non duplicates?)
I have a searchlogic that searches for not_null on an association that can occur many times, but I only want to display one UNIQUE/DISTINCT instance of the object:
Company.contact_emails_id_not_null
I only want one Company, no matter how many…

Satchel
- 16,414
- 23
- 106
- 192
3
votes
1 answer
What is the difference between searchlogic and other fulltext search plugins?
I am looking for an alternative to acts_as_solr or thinkingsphinx for fulltext search in my Rails app. Came across searchlogic. Does it support indexing? I am planning to host my app on heroku and I want an alternative because heroku charges for…

Shripad Krishna
- 10,463
- 4
- 52
- 65
3
votes
1 answer
What is a viable replacement for Searchlogic?
It appears that Searchlogic doesn't work with Rails 3. (Among other things, Ryan Bates mentioned in in one of his RailsCasts, and the last question in the Google Group is from 2010.)
So I'm looking for a replacement. I like the functionality where…

Ethan
- 57,819
- 63
- 187
- 237
2
votes
1 answer
Changing number of returned search results with Rails and Ajax
I recently changed the pagination with will_paginate in my Rails (2.3.4) app to use Ajax for the pagination and records per page. The pagination was done using the method described here:…

Eric K
- 43
- 1
- 4
2
votes
1 answer
Searchlogic 'OR' conditions on associated records
Rails 2.3.5
Searchlogic 2.3.27
I have the following models;
class Outbreak < ActiveRecord::Base
has_many :bacterial_agents, :dependent => :destroy
has_many :bacteria, :through => :bacterial_agents
has_many :viral_agents, :dependent =>…

Pasted
- 864
- 1
- 12
- 22
2
votes
2 answers
Rails 3 Search: Searchlogic vs Thinking_Sphinx
In the past, I have used thinking_sphinx with Rails 2.3 and I found no problems with it. Is it worth considering a new search option?
What are the differences between searchlogic and thinking_sphinx? Is there a better alternative for Rails 3? I am…

amaseuk
- 2,147
- 4
- 24
- 43
2
votes
3 answers
Search many fields with will_paginate / searchlogic
How do you effectively search among many fields in a model?
# user.rb model
def self.search(search, page)
paginate :per_page => 20, :page => page,
:conditions =>
['name like ? OR notes like ? OR code like ? OR city like ? OR state like…

sscirrus
- 55,407
- 41
- 135
- 228
2
votes
2 answers
How to sanitize form params for use with Searchlogic? [Rails]
Example form
<% form_for @search do |f| %>
-
<%= f.label :item_number_equals, "Item number" %>
<%= f.text_field :item_number_equals %> -
<%= f.label :description_keywords, "Description" %>
maček- 76,434
- 37
- 167
- 198