All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: search function needs improvement  (Read 5733 times)

0 Members and 1 Guest are viewing this topic.

Offline agamum

  • Newbie
  • *
  • Posts: 12
    • View Profile
search function needs improvement
« on: 06 July 2008, 10:56 »
Hi!

After testing some download managers for WordPress, I truly believe that this plugin is the best for this.

But I think that the search function is practically useless :-[

Because it only works if you search by ONE word, if you put two or more words it doesnt returns anything...

I think that having only one word to get results from a search is pretty useless, if you cant specify anything but a word... you can get a lot of results that you dont want to have.

It would be nice to see this improvement in the upcoming 1.31 release...  ;)

ps. by the way... it would be even nicer to have the option to integrate the wordpress global search to search in the downloads manager tables...

Offline agamum

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: search function needs improvement
« Reply #1 on: 06 July 2008, 14:49 »
ok... too much sun in the street, better to be fresh in house, so after some researching I found a solution for this  :D

1.:

I have created a FULLTEXT index for file_name and file_des fields using

Quote
ALTER TABLE wp_downloads ADD FULLTEXT(file_name, file_des);


2.:

Replaced the line 444 in wp-downloadmanager.php

Quote
$search_sql = " AND (file_name LIKE('%$search_word%') OR file_des LIKE ('%$search_word%'))";


With this other:

Quote
$search_sql = " AND (MATCH(file_name, file_des) AGAINST ('%$search_word%'))";


So, now, I can use natural search like in search engines and use phrases like "plugin to manage downloads" for searching in the downloads database  ;D

If you like to include in this modification in the next version, it will be ok.

And improving it would be a good idea too, because sometimes the results seems not to be too much accurated.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #2 on: 06 July 2008, 16:11 »
it is meant to be a basic search function. I can't use full text as there are people who are still on MYSQL 4. If I do, then people will have the same issue as http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/ when I decided to move to PHP5.

I will improved on it without using full text.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline agamum

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: search function needs improvement
« Reply #3 on: 06 July 2008, 18:42 »
I will improved on it without using full text.


I promise to make a donation when you do it  ;D

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #4 on: 07 July 2008, 04:41 »
thanks =D it is not that difficult. I am just lazy =p You can check out the search that I did for my site, http://lesterchan.net/site/search/

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline agamum

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: search function needs improvement
« Reply #5 on: 07 July 2008, 17:39 »
Wow! that's an amazing search engine!  ;)

Maybe the downloads manager doesnt need a so wonderful one (anyway, it will be great to have it integrated), but the actual one is useless because nobody search using only one word. And if you want to search a file in a database that stores 100 files... is a pain doing it looking at each page...

I hope that my promise of doing some donation (at least $15 I promise!) can help you to defeat that laziness ;)

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #6 on: 07 July 2008, 18:10 »
Yea i get what you mean by the one word =D. Think I will split the search term by space and search using individual words.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline agamum

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: search function needs improvement
« Reply #7 on: 27 July 2008, 15:18 »
Hi Lester!  :)

I just want to thank you for the improvement in the search function and let you know that I made a $15 donation (from an email of the same domain that I use for this forum) just right now in gratitude for it  ;)

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #8 on: 27 July 2008, 15:41 »
OOO thanks Samuel =D

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: search function needs improvement
« Reply #9 on: 27 July 2008, 19:58 »
Glad it works. :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline Chris Brennan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: search function needs improvement
« Reply #10 on: 04 August 2008, 10:30 »
Hi,

At the risk of looking like a fool can somebody tell me where the search function actually is? And how to integrate it into a page? I've looked but I can't find any instructions... Sorry if this is so obvious that only an idiot would miss it but it's Monday morning and I've not had any coffee yet!

This is a fantastic plug in BTW really perfect for me.

Ta -

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #11 on: 04 August 2008, 10:33 »
The search function is built into the downloads page. Instruction is in the readme.html under Usage Tab

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Chris Brennan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: search function needs improvement
« Reply #12 on: 04 August 2008, 11:10 »
Told you it was early....

Is there any way to integrate the search box without listing the downloads data above? I'd like to have three pages which all display a single category of downloads with the search box at the top of the page. eg.. [display search] [download id="1" display="both"]

Is this asking too much? I kinda get the feeling it might be...

Thanks

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #13 on: 04 August 2008, 11:27 »
Take a look at WP-Admin -> Downloads -> Download Templates under "Download Page Footer:" The code for the search is there.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline kylematthews

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: search function needs improvement
« Reply #14 on: 13 April 2009, 23:20 »
Are there any plans to integrate the downloads search into the basic wordpress search? My users wind up getting confused when I tell them there are multiple search engines they need to use on our site, depending on whether they want to search posts or downloads.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: search function needs improvement
« Reply #15 on: 14 April 2009, 01:12 »
Sorry that is not possible.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.