Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2010-09-13 20:18:13

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

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

#38 2010-09-13 21:23:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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.

Txp Builders – finely-crafted code, design and Txp

Offline

#39 2010-09-20 15:21:06

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

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

#40 2010-09-21 00:42:42

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

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

#41 2011-03-17 02:43:38

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

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

#42 2011-03-17 05:07:05

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#43 2011-03-17 05:23:30

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

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

#44 2011-04-19 21:50:39

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

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

#45 2011-04-28 09:16:49

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

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

#46 2012-02-01 14:54:21

slabanosa
Member
From: Silva Carbonaria
Registered: 2004-06-01
Posts: 57

Re: wet_haystack: Custom fulltext search index builder

Not sure if it is allowed to post it here, so delete me if I’m wrong but here’s a quick word of caution for those working with MLP: wet_haystack will break your search functionality when used with the MLP mod

Offline

#47 2012-02-01 15:02:07

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: wet_haystack: Custom fulltext search index builder

Thanks for the report. I have added this fact to the initial post and to wet_haystack’s documentation.

Offline

#48 2014-02-21 20:31:30

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: wet_haystack: Custom fulltext search index builder

Dear Informed Textpattern Prodigies,

I’m having some trouble, and I did some tests. Here’s what I found.

I have a custom field that lists names in a common citation format. When wet_haystack is active, Textpattern’s search can find articles with some names, but not others

Case A
Custom field content
John Stephens
Search query
John Stephens
Result
Search returns the articles with “John Stephens” in the custom field
Case B
Custom field content
Stephens, John
Search query
John Stephens
Result
Search does not return the articles with “Stephens, John” in the custom field

My goal is to get the search query for case B to return results where the last name is first in the custom field. Can you suggest any way I could get this to work?

Thank you!

Offline

Board footer

Powered by FluxBB