JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07.12.2018, 02:03
Juggalo Juggalo is offline
JD Beta
 
Join Date: Mar 2011
Posts: 53
Default Request multi word search queries

I would like the ability to search with multiple words in Downloads & Linkgrabber tabs.

So lets says there's a file that says walking.dead.s01e01.

Currently if I wanted to find it I'll have to type one of the words or numbers in the exact order:

Example:
"walking"
"dead"
"s01e01"
"walking.dead"
"dead.s01e01"
"walking.dead.s01e01"


I would like to search without needing it to be exact.

Example
"walking dead"
"walking s01e01"
"dead s01e01"

I believe it used to be like this. I couldn't find any settings in advanced setting for this.

Thanks,
Juggalo
Reply With Quote
  #2  
Old 07.12.2018, 07:40
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Juggalo View Post
I would like the ability to search with multiple words in Downloads & Linkgrabber tabs.
Using wildcards:
Code:
walking*dead
walking*s01e01
dead*s01e01

Addditionally, it is also possible to combine search terms:
Code:
walking*dead|talking*dead
walking*s01e01|talking*s01e01

Regular expressions can also be used in the search field by enabling the following setting:
Code:
Settings > Advanced Settings > GeneralSettings.filterregex
Reply With Quote
  #3  
Old 07.12.2018, 08:13
Juggalo Juggalo is offline
JD Beta
 
Join Date: Mar 2011
Posts: 53
Default

Cool! It looks like combing search terms works.

But wild cards & regular expressions don't work as they should. I can still only search with 1 word max.

I did enable
Settings > Advanced Settings > GeneralSettings.filterregex

I have created a bugs thread here:
https://board.jdownloader.org/showth...973#post433973
Reply With Quote
  #4  
Old 07.12.2018, 08:44
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Juggalo View Post
But wild cards & regular expressions don't work as they should. I can still only search with 1 word max.
The list is filtered correctly with the wildcard examples from Post #2. The following regex also filters the list as expected:

Code:
walking.*dead
walking.*s01e01
dead.*s01e01

Can you provide an example where either or both of them fail?
Reply With Quote
  #5  
Old 07.12.2018, 09:18
Juggalo Juggalo is offline
JD Beta
 
Join Date: Mar 2011
Posts: 53
Default

Ah okay, putting in the periods is what I was missing.

So this gets me what I want:
walking.*s01e01

But searching this doesn't work for me:
walking*s01e01

Even if there are spaces (not periods) in between the words I still have to put a period at the end of the first word.

That works fine for me.
Reply With Quote
  #6  
Old 07.12.2018, 10:03
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Juggalo View Post
But searching this doesn't work for me:
walking*s01e01
The '*' character will work as a wild card in the search field, only when regex is disabled in advanced settings. It is a quantifier in regex, not a wildcard.

Quote:
Originally Posted by Juggalo View Post
Even if there are spaces (not periods) in between the words I still have to put a period at the end of the first word.
'.' is the wildcard character in regex. It will match any character once. To match zero or more characters, you have to use '.*'.

Last edited by mgpai; 07.12.2018 at 10:07.
Reply With Quote
  #7  
Old 07.12.2018, 10:15
Juggalo Juggalo is offline
JD Beta
 
Join Date: Mar 2011
Posts: 53
Default

Awesome thanks!
Reply With Quote
  #8  
Old 07.12.2018, 11:19
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

And you can add 'Multiline' without having to combine names in regex? It will be just faster as I want to add thousands of names.
Reply With Quote
  #9  
Old 07.12.2018, 15:22
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by djmakinera View Post
And you can add 'Multiline' without having to combine names in regex?
Use text editor to create the search term. Enter one name per line in a text file, and then find '\r\n" and replace it with "\|". Paste the result in JD.
Reply With Quote
  #10  
Old 07.12.2018, 15:38
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Not working

EmEditor message:
Code:
Cannot find \r\n anywhere in document.
Reply With Quote
  #11  
Old 07.12.2018, 19:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Then the newline combination \r\n is not used or you use the search method wrong
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.