Post Tab Search and Internet Search Confusion

Technical support and discussion of Newsbin Version 6 series.

Post Tab Search and Internet Search Confusion

Postby nc_usenet » Thu Mar 24, 2011 4:30 pm

I am running 6.0b6 Build:870 and need some help with Searching.
Situation: There is a guy named "John A Smith" I want to find all posts (both downloaded and on the internet) that contain his name.
The posts may actually contain: John Smith or Smith, John or Smith, John A., etc

What should I enter in the Search box for posts?
What should I enter in the Internet Search tab?

In the Post tabs Search Box:
If I enter John Smith Does not find Smith, John or John A. Smith
If I enter Smith John Does not find John Smith

As a workaround, I tried to use the Search tab, with the type set to local, but had problems.
The V6 Help says that the order of the keywords doesn't matter, but it appears that order does matter for local searches. Searching for John Smith and then Smith John yields very different results.

It does appear, that an Internet search yields all the desired posts simply by entering John Smith.

Thanks
User avatar
nc_usenet
Occasional Contributor
Occasional Contributor
 
Posts: 22
Joined: Mon Mar 21, 2011 2:01 pm

Registered Newsbin User since: 03/21/11

Re: Post Tab Search and Internet Search Confusion

Postby itimpi » Thu Mar 24, 2011 5:03 pm

Internet search and local search use different syntax. The difference has arisen from both historical reasons, and also the difference in technology at the client and server ends.

You are correct that for internet search it is just the keywords that matter, and the order is not important (unless you enclose words in quotes to mean an exact match).

Local search uses regex syntax. As you spotted here the order is significant, but you should be able to get around this by using the | symbol for the logical 'or' operator to allow you to specify alternatives.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Re: Post Tab Search and Internet Search Confusion

Postby nc_usenet » Thu Mar 24, 2011 6:14 pm

As you spotted here the order is significant, but you should be able to get around this by using the | symbol for the logical 'or' operator to allow you to specify alternatives.

Thanks for the response.
It appears a bit more complicated than just using John Smith | Smith John.
Using the above does not find Smith, John (and probably others)
Now I have to account for all of the possible characters separating words & the order for John A Smith.
In the Regex Forum was the following post (from 2005)
If you need to find posts with, say, three words in any order, you can go crazy with all the possible orders, separated with '|' chars or...
You could just use a series of "lookahead" operations.
(?=foo) means "followed by foo" and (?=.*foo) means followed by any number of chars and then foo. You can combine this with the line-start char '^' and get ^(?=.*foo) which means "start of line followed by any number of chars and then foo" - and these lookahead expressions can be stacked, so, to get a post with foo, bar and blat in any order you can use: ^(?=.*foo)(?=.*bar)(?=.*blat)

OMG :shock: :
So it looks like I would need to enter ^(?=.*john)(?=.*smith)
I really (really!) wish there was a simple keyword search :(
User avatar
nc_usenet
Occasional Contributor
Occasional Contributor
 
Posts: 22
Joined: Mon Mar 21, 2011 2:01 pm

Registered Newsbin User since: 03/21/11

Re: Post Tab Search and Internet Search Confusion

Postby Quade » Thu Mar 24, 2011 6:58 pm

"john.*smith|smith.*john"
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Post Tab Search and Internet Search Confusion

Postby nc_usenet » Thu Mar 24, 2011 11:32 pm

Quade wrote:"john.*smith|smith.*john"


This is a lot better than the other expression (but still a lot more typing than just john smith :? ), Based on itimpi's post, should I assume that a keyword search is not on "the list"?
User avatar
nc_usenet
Occasional Contributor
Occasional Contributor
 
Posts: 22
Joined: Mon Mar 21, 2011 2:01 pm

Registered Newsbin User since: 03/21/11

Re: Post Tab Search and Internet Search Confusion

Postby Quade » Fri Mar 25, 2011 12:11 am

I'd assume nothing. Was toying with the idea of generating regexes internally to emulate keyword search while still leaving the power of regex in place. There's just no time for it right now.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Post Tab Search and Internet Search Confusion

Postby Redbird » Sat Mar 26, 2011 6:32 am

On a similar topic, it is still possible to perform a search in the Download tab, as in V5?

It's a usefull feature to promote some files to top, while usually donwloading by date.
Redbird
Occasional Contributor
Occasional Contributor
 
Posts: 13
Joined: Fri Sep 10, 2010 5:50 pm

Registered Newsbin User since: 09/10/10

Re: Post Tab Search and Internet Search Confusion

Postby richy99 » Sat Mar 26, 2011 7:08 am

not yet no
User avatar
richy99
Elite NewsBin User
Elite NewsBin User
 
Posts: 6353
Joined: Fri Nov 21, 2003 8:04 pm
Location: Wales

Registered Newsbin User since: 12/31/03


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests