Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-06-26 11:56:35
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
"search" plugins for a better search
Hi
I have been searching on the forum for a better search plugin, but found too many and I think not one that does what I need.
right now, txt search all it does is match what you type. if there is a frase that matches it shows as a result.
Search: “John Smith”
results: “John Smith”
but if you type
Search: “Smith John”
result: none
There has to be a better way of doing this, I need to search for restaurants
so people may type
Search:“japanese restaurant NY”
Right now gives no results because of what I mention before.
Is there a plugin that fixes this?
Thanks!
Offline
Re: "search" plugins for a better search
Hi mlarino,
Try some of the plugins here. smd_fuzzy_find might be close to what you are looking for.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: "search" plugins for a better search
mlarino wrote:
I have been searching on the forum for a better search plugin
Does smd_fuzzy_find help at all? I’ve never tried it with multiple words, but since it’s supposed to find “sort of” related documents, it might well match this kind of thing. Might be worth a try.
EDIT: colak beat me to it :-)
Last edited by Bloke (2009-06-26 12:02:53)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#4 2009-06-26 12:04:19
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: "search" plugins for a better search
Thanks colak,
I looked into those plugins but dont seem to do that.
Wouldnt a search like that be something out of the box?
at least
Search:“John Smith”
should give a result of
result:“John” “Smith” “John Smith”
Offline
Re: "search" plugins for a better search
mlarino wrote:
Wouldnt a search like that be something out of the box?
Clearly not, or it would return what you expected :-)
I’m pretty sure the built in search takes whatever you type and looks for it verbatim. I’m not sure if it works with other meta characters to specify OR conditions (never tried). I don’t think it works with double quotes around the terms, like you do with Google to specify AND; I think it’s AND all the time.
You can either train your users to expect no results and offer them alternatives that might match, or use a plugin like smd_fuzzy_find, or a patch to do that for you.
Last edited by Bloke (2009-06-26 12:18:39)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: "search" plugins for a better search
I wrote a patch that I think does what you want. Check the txp-dev list archives. There may be a forum post that describes it as well. Will see if I can find it.
Edit: Search for “Alternate Search Behavior”
Last edited by artagesw (2009-06-26 12:23:30)
Offline
#7 2009-06-26 15:42:35
- kostas45
- Member
- From: Greece
- Registered: 2007-11-08
- Posts: 61
Re: "search" plugins for a better search
It really is a shame TXP’s search is so limited and Sam’s patch never found its way into the core.
A way around it is to use smd_query
plugin and construct your own search.
-Kostas
Offline