Re: Search for words in paths to a filename
- From: "hjpal" <hjpal@xxxxxxxxxxxx>
- Date: Thu, 15 Mar 2007 12:42:37 +0100
Not sure what you mean by searching on path.
Code snippet looks like this
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.
"Hilary Cotter" <hilary.cotter@xxxxxxxxx> skrev i en meddelelse
news:%23FS8FfjZHHA.4420@xxxxxxxxxxxxxxxxxxxxxxx
Are you searching on path? It should show up in path.expect
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"hjpal" <hjpal@xxxxxxxxxxxx> wrote in message
news:uOh9ZUKZHHA.1008@xxxxxxxxxxxxxxxxxxxxxxx
I have tried AllowEnumeration = True
but this has no impact on the results.
E.g.
if the searchstring contains the "directory" or "director*" I would
file.this as a match
file://servername/name of directory to/name of file.doc
assuming there was a directory called "name of directory to"
But I get "no match"
"Hilary Cotter" <hilary.cotter@xxxxxxxxx> skrev i en meddelelse
news:%23NJ9a3jYHHA.3272@xxxxxxxxxxxxxxxxxxxxxxx
set allowenumeration to true.searchstring
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"hjpal" <hjpal@xxxxxxxxxxxx> wrote in message
news:u3sCxULYHHA.208@xxxxxxxxxxxxxxxxxxxxxxx
I am using this for the search in the filesystem.
ixQuery.Query = "@All " & searchstring &""
The "@All" should search in all properties.
Doing a seach documents and there path are retrieved when the
contains words that match words in the filename or conents of the
no
Using words that match only words in the path to the filename gives
match.
Is that not possible?
.
- References:
- Search for words in paths to a filename
- From: hjpal
- Re: Search for words in paths to a filename
- From: Hilary Cotter
- Re: Search for words in paths to a filename
- From: hjpal
- Re: Search for words in paths to a filename
- From: Hilary Cotter
- Search for words in paths to a filename
- Prev by Date: Re: Preprocessed search index....Index Replication...
- Next by Date: Re: Unable to search by directory names...
- Previous by thread: Re: Search for words in paths to a filename
- Next by thread: Indexing Services vs. Desktop Search
- Index(es):
Loading