Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 554161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:40:50+00:00 2026-05-13T11:40:50+00:00

Lets say I do not want to get the VPS or Dedicated Server required

  • 0

Lets say I do not want to get the VPS or Dedicated Server required to run constant indexing like with Thinking_Sphinx plugin or many of the other full text search plugins for ruby on rails.

I have a bunch of listings in the database with a Name field and category field (among other things).

It it possible search for a name in a certain category without having a fulltext search plugin that requires constant indexing? and how would I go about doing this?

Thank you. I hope I have been clear enough.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:40:51+00:00Added an answer on May 13, 2026 at 11:40 am

    If you just want to search a specific column (or two), you could certainly take advantage of the LIKE SQL operator.

    For example, using a named_scope in rails

    class MyModel < ActiveRecord::Base
      named_scope :search, lambda { |query|
        { :conditions => ["category like ?", "%#{query}%"] }
      }
    end
    

    Then, in your controllers, you could do something like

    @search_results = MyModel.search(params[:query])
    

    There are a few drawbacks to this approach:

    1. You’re only searching a single column. You can take advantage of the dynamic nature of Ruby to expand this to more columns, but you’re definitely not getting the advantage of an index like you would with sphinx
    2. This will work fine for smallish sets of data. After you get a few thousand rows, you’re going to start needing some decent indexing strategies to keep this fast, otherwise searching this way is going to slow down dramatically.

    Hopefully that helps. If I misunderstood the question, let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have several web sites on my web server, all as applications
Lets say I've got two interchangeable pieces of code and I want to figure
Lets say I have an array like this: string [] Filelist = ... I
Let's say that I create a Sub (not a function) whose mission in life
Let's say you have a aspx page that does not rely on session, but
Not really a programming question, but relevant to many programmers... Let's say I have
Lets say I have a Dictionary object: Dictionary myDictionary<int, SomeObject> = new Dictionary<string, SomeObject>();
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user
Lets say I have the following code: abstract class Animal case class Dog(name:String) extends
Lets say on MySQL database (if it matters).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.