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? I also noticed that it doesn't seem to work as well with the word AND when searching for two words, any idea why?
Best Regards
~ JG
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? I also noticed that it doesn't seem to work as well with the word AND when searching for two words, any idea why?
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