Jump to content

Search ignore punctuation and others


sww
 Share

Recommended Posts

Hey there,

i am trying to add a kind of "intelligent" search.
Is there any way to ignore punctuation and extra chars.

e.g.

When I type "somebody elses" that I still get the result "SOMEBODY ELSE´S CAR, 2005"
The problem is the extra ´ … if I don't type it I don't get the result.

So far I am using %=query (which isn't enough, I know)

So the idea would be something like that:

$selector = "sanitize(title|text)%=$q, limit=50";

I know, it's not gonna work like that … just to illustrate.

Best,
Stefan

Link to comment
Share on other sites

Nope … ~= is even more restrictive … it needs the exact word. so typing "someb" … wouldn't give me anything.

The fields I am searching need to have something like "ignore punctuation optional".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...