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 8805965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:59:53+00:00 2026-06-14T01:59:53+00:00

I need to search some data in my database. But main problem is that

  • 0

I need to search some data in my database. But main problem is that i search with match against:

...MATCH(description) AGAINST ("*52*" in boolean mode)

But on one iteration (or more, but with one query) i must search not only for 52, but for 50,51,52,...,59 as before…
But is it real to do?
Also i do it with RoR:

 @accums = Accumulator.find(:all, :conditions => ["MATCH(description) AGAINST (? in boolean mode)", size])

Or i will need to do iterator on rails, and search for all of them iteration by iteration?

  • 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-06-14T01:59:54+00:00Added an answer on June 14, 2026 at 1:59 am

    If you say:

     MATCH(description) AGAINST ("*52*" in boolean mode)
    

    Against a row where ‘description’ is:

    34,520,1000,9000
    

    or

    34,452,1000,9000
    

    or

    34,4525,1000,9000
    

    You will get a match. Is that your desired result?

    I am guessing not.

    I think what you want is:

    MATCH(description) AGAINST ("52" in boolean mode)
    

    And to handle multiple matches you would want:

    MATCH(description) AGAINST ("51 52 53" in boolean mode)
    

    Examples:

    34,520,1000,9000
    // no match
    
    34,452,1000,9000
    // no match
    
    34,52,1000,9000
    // match
    
    34,53,1000,9000
    // match
    
    34,52,53,9000
    // match
    

    Untested.

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

Sidebar

Related Questions

I need to search some data depending on whether user enters a postcode or
I need to read some data from database my controller is class Pro_ajax extends
I have results from a database search where some columns have dates, but not
I need to search for a partial match in an inverted index, following code
I need to search for the closest Dialcode bigger than the actual one. For
In my app I need to store some simple data both in memroy and
i'm having some problems using a custom made function to search specific data from
I need to make a search page for some project. Input fields are: <h:inputText
I'm currently developing an application that needs to store data in it's on database,
I really like Xml for saving data, but when does sqlite/database become the better

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.