Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: smd_fuzzy_find: making search results less precise
alanfluff wrote:
is it OK to use the latest ver of that, I’m about to use 0.36?
Sure thing. I should update the docs really and remove any such version information from the plugins, as smd_lib is now stable enough and backwards compatible enough to not warrant it any more. Go for it.
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: smd_fuzzy_find: making search results less precise
Splendid! Tks, cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: smd_fuzzy_find: making search results less precise
Sorry where do I put the attributes for this plug in.
like if I want to use match_with=“keywords, title,body,excerpt,category1,category2”.
Where would I put that?
its a bad hen that wont scratch itself.
photogallery
Offline
Re: smd_fuzzy_find: making search results less precise
kvnmcwebn wrote:
Sorry where do I put the attributes for this plug in.
In the usual spot in the smd_fuzzy_find tag! If you want to match with some other fields than the default title and body, specify them like this:
<txp:smd_fuzzy_find match_with="article:body;title;excerpt;keywords;category1;category2" />
Last edited by Bloke (2010-05-28 08:51:54)
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: smd_fuzzy_find: making search results less precise
ahh thanks, i was using commas to separated them with a space.
its a bad hen that wont scratch itself.
photogallery
Offline
Re: smd_fuzzy_find: making search results less precise
Hello,
is this plugin able to work with non latin character sets?? For example Cyrillic?
I tried it on a Russian language website and it failed, so I suggest, that the plugin can´t handle letters other than latin ones.
Offline
Re: smd_fuzzy_find: making search results less precise
whocarez wrote:
is this plugin able to work with non latin character sets?? For example Cyrillic?
Short answer is I have absolutely no idea, sorry. The engine it uses is a complete mystery to me: it was written by someone else.
I would guess not — and your findings appear to mirror this. You could try using the refine
and tolerance
attributes but, in the case of refine, it uses two PHP functions called metaphone and soundex, both of which cite the fact they work with English language. People have posted alternative language versions of both functions, but nothing (as far as I can tell) that targets Cyrillic.
Last edited by Bloke (2010-07-30 15:19:03)
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: smd_fuzzy_find: making search results less precise
@ Bloke: Wow, you are very fast!
At the moment I think the problem is more related to MLP, because it is not the only language. In debug mode I get the following error:
Ошибка тега: <txp:smd_fuzzy_find form="search_results" /> -> Textpattern Warning: Unknown column 'textpattern.Posted' in 'field list'
select *, unix_timestamp(textpattern.Posted) AS uPosted, unix_timestamp(textpattern.LastMod) AS uLastMod, unix_timestamp(textpattern.Expires) AS uExpires from l10n_txp_ru_ru where 1=1 AND Status IN ('4','5')
textpattern/lib/txplib_db.php:258 startRows() on line 113
textpattern/lib/txplib_db.php:113 trigger_error()
textpattern/lib/txplib_db.php:323 safe_query()
textpattern/lib/txplib_db.php:258 startRows()
textpattern/lib/txplib_misc.php(594) : eval()'d code:213 safe_rows_start()
textpattern/publish.php:1106 smd_fuzzy_find()
textpattern/publish.php:1028 processTags()
textpattern/publish/taghandlers.php:2993 parse()
textpattern/publish.php:1106 if_search_results()
textpattern/publish.php:1041 processTags()
textpattern/lib/txplib_misc.php:1621 parse()
Ошибка тега: <txp:smd_fuzzy_find form="search_results" /> -> Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource on line 329
textpattern/lib/txplib_db.php:329 mysql_fetch_assoc()
textpattern/lib/txplib_misc.php(594) : eval()'d code:222 nextRow()
textpattern/publish.php:1106 smd_fuzzy_find()
textpattern/publish.php:1028 processTags()
textpattern/publish/taghandlers.php:2993 parse()
textpattern/publish.php:1106 if_search_results()
textpattern/publish.php:1041 processTags()
textpattern/lib/txplib_misc.php:1621 parse()
textpattern/publish/taghandlers.php:266 parse_form()
textpattern/publish.php:1106 output_form()
Ошибка тега: <txp:smd_fuzzy_find form="search_results" /> -> Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource on line 331
textpattern/lib/txplib_db.php:331 mysql_free_result()
textpattern/lib/txplib_misc.php(594) : eval()'d code:222 nextRow()
textpattern/publish.php:1106 smd_fuzzy_find()
textpattern/publish.php:1028 processTags()
textpattern/publish/taghandlers.php:2993 parse()
textpattern/publish.php:1106 if_search_results()
textpattern/publish.php:1041 processTags()
textpattern/lib/txplib_misc.php:1621 parse()
textpattern/publish/taghandlers.php:266 parse_form()
textpattern/publish.php:1106 output_form()
the same for the German language installation. Maybe it is a effect of wet_haystack, which I tried …
Normal textpattern search is working and I already played around with parameters.
Textpattern 4.2.0, latest fuzzy_find and mlp. MySQl 5.1.43 and PHP 5.2 in use.
Offline
Re: smd_fuzzy_find: making search results less precise
whocarez wrote:
@ Bloke: Wow, you are very fast!
Faster than a speeding electron :-)
At the moment I think the problem is more related to MLP, because it is not the only language
Could be but, umm, you might have uncovered a bug. Are you using a prefix on your database tables?
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: smd_fuzzy_find: making search results less precise
Bloke wrote:
Could be but, umm, you might have uncovered a bug. Are you using a prefix on your database tables?
No, I don´t use a prefix.
Offline
Re: smd_fuzzy_find: making search results less precise
whocarez wrote:
No, I don´t use a prefix.
OK, so it’s not that. It could be an incompatibility with MLP but I thought I’d tested it. Hmm. If I get a chance to set up an environment like yours I’ll see what I can do. Probably won’t be very soon though — got a lot of other stuff stacked up in my TODO pile unfortunately.
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: smd_fuzzy_find: making search results less precise
Hi Stef, this could be an issue related to my problems with wet_haystack
What happens when I search for the category “commercial design” is this
When I search for “commercial-design” all goes well and I get 4 results, the number of articles in that category…
edit: ps if you want a login to the site, let me know
Last edited by JanDW (2010-09-22 01:53:52)
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