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?
If you say:
Against a row where ‘description’ is:
or
or
You will get a match. Is that your desired result?
I am guessing not.
I think what you want is:
And to handle multiple matches you would want:
Examples:
Untested.