aMule Forum

English => Feature requests => Topic started by: sparky23882 on January 07, 2006, 01:47:36 PM

Title: better filtering of search results
Post by: sparky23882 on January 07, 2006, 01:47:36 PM
Hello there!

I've switched from mlMac to aMule and I'm missing the filtering of search results. aMule does very basic filtering and you always have to hit "filter results" to get the filtered search results. mlMac filters as-you-type AND you can set filters like "-mp3 -wav hello" meaning there will be no files with "mp3" or "wav" in their names, but "hello" will be in every search result. It's not hard to do this, some minutes of work I guess, as there already is a filter (which unfortunately is not a good one) which should get fixed.

greetz,
Sparky
Title: Re: better filtering of search results
Post by: spiorf on January 07, 2006, 06:42:33 PM
i already asked for this some time ago, but there was a technical issue.
here is the thread http://forum.amule.org/thread.php?threadid=6910&sid= (http://forum.amule.org/thread.php?threadid=6910&sid=)
Title: Re: better filtering of search results
Post by: Kry on January 07, 2006, 07:36:29 PM
Basic filtering? Do you know regexps?
Title: ...
Post by: sparky23882 on January 07, 2006, 08:41:32 PM
Are regexps supported?
Where can I find the documentation about it?
I do know regexps...
Title: Re: better filtering of search results
Post by: Kry on January 07, 2006, 09:22:20 PM
You can use regexps on the filter field.

In adition for that, oyu can use boolean queries on search string itself.

Like

Linux NOT mandriva

or

linux NOT (mandriva OR ubuntu OR gentoo)

AND operator is also suported, and this applies also to extensions (like porn NOT wmv)
Title: Re: better filtering of search results
Post by: sparky23882 on January 07, 2006, 09:37:45 PM
Ok and what characters enclose the regexp here?
// or "" or something else?
Title: Re: better filtering of search results
Post by: Xaignar on January 07, 2006, 10:23:01 PM
See http://www.wxwidgets.org/manuals/2.6.2/wx_wxresyn.html
Title: Re: better filtering of search results
Post by: sparky23882 on January 08, 2006, 09:09:22 AM
Okay, so regexp are supported.
But I guess I'm too stupid to write a "search for string1 and not string 2".
(rar|iso) searches for rar and iso files, as (rar|iso). does (one or more occurrence)
(test){0}(.){1,}(rar|iso) _should_ search for rar or iso, but not for "test". But it doesn't.

Is there any document with some examples? This doesn't seem to be the regexps I
know from php... ease of use seems not to be the objective of this filter. Otherwise,
a simple "+" or "-" in front of a word would work...
Title: Re: better filtering of search results
Post by: ken on January 08, 2006, 10:49:32 PM
Just so you know, sparky23882, hitting Return in the filter field acts like pressing the Filter button.  It's a little more convenient that way.

On the other hand, I agree that regexp is a bunch of power that's not actually useful in the context of filtering searches, while a simpler, less powerful filter language might actually be more useful.  No offense, Xaignar.  :P
Title: Re: better filtering of search results
Post by: Xaignar on January 08, 2006, 11:51:29 PM
:(
Title: Re: better filtering of search results
Post by: Xaignar on January 14, 2006, 04:07:16 PM
Btw, if you want something more userfriendly, then you'll have to suggest alternatives, cause I'm pretty much blank.
Title: alternatives
Post by: sparky23882 on January 15, 2006, 10:46:31 AM
Here is the (in my opinion) most user-friendly alternative to regexp filtering.

Very easy to do.

" " (space) = AND
" -" (space, minus) = NOT

Boolean searching. Case-insensitive.
"happy -mp3 -xxx" finds matches containing "happy" and not containing "mp3" or "xxx"
"fun -wmv -avi -mpg -mpeg -jpg" finds files containing "fun" while not being a image or video.

So you, for example, search for "deeds" (you want to find the new movie) and filter with something like this:
"-jpg -txt -html -(old date)" etc. The old date you'll see in the search results, the old movie will be there too, I guess.

Search-as-you-type would be terrific here, because you immediately see how search results get less and more precise.


It's fast, ist's very easy to use and a boolean "AND" and "NOT" is quite simple to do, I guess. And because there are no regexps that have to be correct, search-as-you-type woulnd't be a big problem, too. onChange of the input field's data, a new search os done within the search results.


Need more ideas?
Title: Re: better filtering of search results
Post by: Xaignar on January 15, 2006, 01:35:10 PM
Well, I'd argue for using " and ' as the delimitors for joined words. I.E. -"old date" rather than -(old date), since this is similar to what one is used to from search engines. But otherwise I agree. A way to specify regexps would also be nice, but that can wait (maybe >>regex<< or something).