|
-
Mar 4th, 2009, 08:05 AM
#1
Forum Advanced Search
When I do an advanced search for some text, it doesn't search within some tags.. like CODE, HIGLIGHT etc.
e.g.
I do an advanced search for:
Key Word(s): Form1_KeyDown
User Name: Pradeep1210
Rest everything at default settings.
It shows no records found.
But Have a look at this post:
http://www.vbforums.com/showpost.php...19&postcount=6
It has exactly what I have been searching for, but inside HIGHLIGHT tags.
So what is the correct way to search so that everything inside the post is included in the search including these tags?
Or is this a limitation of the vBulletin boards?
Pradeep
-
Mar 4th, 2009, 08:17 AM
#2
Re: Forum Advanced Search
The problem is not the tags, the problem is the _ character; if you search for other items in the code, it works fine.
The _ character (and %) is a wildcard in SQL, which the search almost certainly uses, and I presume that the forum software eliminates it. I just did a quick test (tried to escape it), and it seems that is the case.
-
Mar 4th, 2009, 08:28 AM
#3
Re: Forum Advanced Search
ok...
so how do we escape that character in the forums search?
-
Mar 4th, 2009, 08:44 AM
#4
Re: Forum Advanced Search
I've got no idea I'm afraid, the standard SQL method (putting it in square brackets, so it is treated as a character list) doesn't work.
There is likely to be something on vBulletin that explains how to do it.
-
Mar 6th, 2009, 11:25 AM
#5
Re: Forum Advanced Search
Actually its a MySQL database so using wildcard characters for that in php should return the results you want.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 6th, 2009, 11:54 AM
#6
Re: Forum Advanced Search
 Originally Posted by RobDog888
Actually its a MySQL database so using wildcard characters for that in php should return the results you want.
So what exactly should I type in the forums search textbox so that I get the results I am expecting to see?
-
Mar 8th, 2009, 10:46 PM
#7
Re: Forum Advanced Search
Enclose it in double quotes.
"Form1_KeyDown"
produces expected search results.
-
Mar 9th, 2009, 02:21 AM
#8
Re: Forum Advanced Search
NO...
can't still get the link I posted in my first post to be included in the search results. The only result is this thread. I think that's because this thread has that word within double quotes, exactly as I put in the keywords box in post #7. So it is including the double quotes in search.
I tried with :
Key Word(s): "Form1_KeyDown"
User Name: Pradeep1210
Rest everything at default settings.
-
Mar 9th, 2009, 02:32 AM
#9
Re: Forum Advanced Search
-
Mar 9th, 2009, 12:11 PM
#10
Re: Forum Advanced Search
Could it have something to do with the fact that the keydown is immediately followed by a parenthesis? If you do a search for "Me.KeyPreview", which has a space before the equal, you get the thread you are looking for.
-
Mar 9th, 2009, 06:31 PM
#11
Re: Forum Advanced Search
Strange that I did get some results when I made that post but now I do not. I must have made a mistake. Sorry.
-
Mar 18th, 2009, 03:28 AM
#12
Re: Forum Advanced Search
I think this is protection against sql injections.
Delete it. They just clutter threads anyway.
-
Mar 18th, 2009, 12:05 PM
#13
Re: Forum Advanced Search
Assuming that after the recent upgrade this problem might have been corrected, I tried what I was doing in post #1 again.
Though I don't get what I was expecting, the results were different from previous one. I got this current thread in the search.
So I think Negative0 might be right that it is considering the parenthesis a part of the word and consequently omitting it in the search results.
Pradeep
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|