hjpal
2007-03-23 11:55:12 UTC
This Code snippet will not give a search match.
Is it not possible to do what I intend to - query directory names?
strQuery = "@all " & target & ""
dim ixQuery ' Index Server query object.
set ixQuery = Server.CreateObject("ixsso.Query")
if (Err.description <> "") Then
Response.Write ("<p><b>Query object Error: " & Err.description &
".</b></p>" & vbCRLF)
Exit sub
end if
ixQuery.AllowEnumeration = True
ixQuery.Columns = "doctitle, vpath, path, filename, size, write,
characterization, rank"
ixQuery.SortBy = "filename[a]"
So when the name "administration" exists in a physical path to at filename I
would expect the file and pathname to be returned from my search
where target = administration or target = administ*
But this is not the case. Only when the word "administration" exists in the
filename og in the file context a match is returned.
Is it not possible to do what I intend to - query directory names?
strQuery = "@all " & target & ""
dim ixQuery ' Index Server query object.
set ixQuery = Server.CreateObject("ixsso.Query")
if (Err.description <> "") Then
Response.Write ("<p><b>Query object Error: " & Err.description &
".</b></p>" & vbCRLF)
Exit sub
end if
ixQuery.AllowEnumeration = True
ixQuery.Columns = "doctitle, vpath, path, filename, size, write,
characterization, rank"
ixQuery.SortBy = "filename[a]"
So when the name "administration" exists in a physical path to at filename I
would expect the file and pathname to be returned from my search
where target = administration or target = administ*
But this is not the case. Only when the word "administration" exists in the
filename og in the file context a match is returned.