Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: wet_haystack: Custom fulltext search index builder
floodfish wrote:
Any chance this could handle searching/finding rss_unlimited_categories?
Sorry, this is not feasible due to the inner workings ogf both plugins.
Offline
Re: wet_haystack: Custom fulltext search index builder
Hi Robert, It seems that for categories the category name is searchable rather than the category title.
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: wet_haystack: Custom fulltext search index builder
Correct.
Offline
Re: wet_haystack: Custom fulltext search index builder
Glad that’s established. But why? I have a category “generic design”, people aren’t going to be looking for “generic-design”? If it is not something you’ve overlooked, is there a way I can make the category title searchable instead by editing the plugin?
Last edited by JanDW (2010-09-13 18:05:44)
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
#35 2010-09-13 18:26:30
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_haystack: Custom fulltext search index builder
JanDW wrote:
But why?
Because only the textpattern table is searched, and that table only contains the category names. But maybe smd_fuzzy_find can help you.
Offline
Re: wet_haystack: Custom fulltext search index builder
Because only the textpattern table is searched.
Aha. If it’s not possible to fetch the title from the txp_category table, I think it would be good to mention in the plugin doc that it doesn’t return a hit on the category title, since I don’t think that’s very obvious.
Thanks, Els. I’ll use smd_fuzzy_find and thanks to Robert for all his work on TXP.
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: wet_haystack: Custom fulltext search index builder
Actually… seems that smd_fuzzy_find is meant to be a backup, when <txp:article> doesn’t return any results (I have it like this on my search page). So I would still need to rely on wet_haystack for the ‘regular’ results, right?
If that’s the case, any chance that wet_haystack could work with category titles?
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: wet_haystack: Custom fulltext search index builder
JanDW wrote:
So I would still need to rely on wet_haystack for the ‘regular’ results, right?
Correct. smd_fuzzy_find only kicks in if you mis-spell something or the regular search fails for some reason. You could always use smd_query instead if you’re feeling brave to create your own searches. Drop me a line with some indicators of what you’d like to achieve if you’d like to try this approach and want a hand.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Online
Re: wet_haystack: Custom fulltext search index builder
Hi Stef. Thanks! I sent you an email.
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: wet_haystack: Custom fulltext search index builder
Hello again. I’m still trying to solve this problem. I thought I’d try to figure out what wet_haystack does.
As I understand it, when checked the categories get added to the FULLTEXT index. Apparently in a normal configuration, MySQL treats a hyphen as a word-stop character.
I’ve dumped the index (myisam_ftdump textpattern 1) and “generic” and “design” are listed, but not “generic-design” so it seems that the hyphen acts as a word stop indeed.
So why does the search only provide results on “generic-design”? Am I misunderstanding the whole thing? Any pointers would be greatly appreciated.
Last edited by JanDW (2010-09-21 00:43:13)
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: wet_haystack: Custom fulltext search index builder
Anybody try this plugin in 4.3? The modal window keeps coming up after I press “save,” and only the default boxes are checked. Haven’t tested to see if this actually affects search.
Offline
Re: wet_haystack: Custom fulltext search index builder
maruchan wrote:
Anybody try this plugin in 4.3?
Yes, me.
The modal window keeps coming up after I press “save,” and only the default boxes are checked.
This is the expected behaviour. What else would you want?
Haven’t tested to see if this actually affects search.
It does. Trust me.
Offline
Re: wet_haystack: Custom fulltext search index builder
OK, I deactivated and then reactivated it, and now it’s working properly. Weird.
What it was doing was:
Open options —> Check a bunch of boxes —> Save —> Shows default (unchecked) form again.
Search gives some crazy SQL error.
instead of what it does now:
Open options —> Check a bunch of boxes —> Save —> Shows all my boxes checked.
Search works properly. Yay!
Thanks, Robert.
Offline
Re: wet_haystack: Custom fulltext search index builder
not sure what is happening, but for some reason the search for a custom_field is not working, and i dont get why..?
i use txp 4.2. w. haystack 0.6 & glz_custom_fields 1.2.4
but for efin sake i wont get any results on that field
any idea? or need more info?
Offline
Re: wet_haystack: Custom fulltext search index builder
at least i found the issue:
txp search on sticky articles is not any smart.
rebuilding the site structure right now, to get rid of the sticky ones.
scheisse mit der scheisse.
<txp:article searchsticky="1" />
niiiiiiiice.
Last edited by jens31 (2011-04-28 09:23:45)
Offline