/    Sign up×
Community /Pin to ProfileBookmark

PHP search engine function

hey all
I’m dooing site about foods and I want to have good search function. I know there are open source projects for that but i’m not sure if they will work for me. So im here to see what others would think.

So I have:
Title of the food, description, and some text

Now my goal is to find the food that person is actually looking for. The problem is.
1) say person looks for Miso Soup and they misstype it as “mitso soup” i need some how to figure that we hosuld show miso instead
2) if some one types japanease soup – i should be able to have logic to do something like see that we have soup in title and japanise keyworkd in text so that we can place results somewhere closer to the top.

I’m sure if I spend week on it I could get perfect engine for my need but if there is something i can use, i would prefere to save my time =)

Thanks

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiFeb 03.2009 — Personally if it's a relatively simple search I'd be inclined to pass the hard work to MySQL (assuming you are using that). Take a look at their Fulltext Search functions. I don't know how well these functions are supported on other database systems (or even if they are at all) so bear that in mind if portability is a concern though.
Copy linkTweet thisAlerts:
@alexusauthorFeb 03.2009 — i never knew about full text search =)

Will play around with it =)

thanks for info
×

Success!

Help @alexus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...