Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Engine Function

Status
Not open for further replies.

jgraves13

Programmer
Jan 31, 2007
42
US
Hello,

I am writing a Search Function, actually it works well, however I don't know how to search for a URL... any idea how to do this???

Code:
'long form query langauge (Dialect = 2):
			
  strCompSearch = "{prop name=Contents} " & CreateSearchString(strSearch) & " {/prop}" & _
				" &! {prop name=vpath} {regex} *Templates* {/regex}{/prop} &! {prop name=vpath} {regex} *AccountAccess* {/regex}{/prop}" & _
				" & {freetext}" & CreateSearchString(strSearch) & "{/freetext}" & _
				" &! {prop name=vpath} {regex} *Test* {/regex}{/prop} &! {prop name=vpath} {regex} *Script* {/regex}{/prop}" & _
				" & {prop name=DocTitle} {regex} ?* {/regex} {/prop}" & _
				" & ({prop name=filename} {regex} *.htm {/regex}{/prop} | {prop name=filename} {regex} *.html {/regex}{/prop}" & _
				" | {prop name=filename} {regex} *.asp {/regex}{/prop} | {prop name=filename} {regex} *.doc {/regex}{/prop}" & _
				" | {prop name=filename} {regex} *.pdf {/regex}{/prop} | {prop name=filename} {regex} *.xls {/regex}{/prop})" & _
				" &! {prop name=robots} {regex} *NOINDEX* {/regex}{/prop}"

Best Regards
~ JG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top