Discussion:
Search for words in paths to a filename
(too old to reply)
hjpal
2007-03-07 12:31:40 UTC
Permalink
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 searchstring
contains words that match words in the filename or conents of the file.

Using words that match only words in the path to the filename gives no
match.

Is that not possible?
Hilary Cotter
2007-03-09 11:29:29 UTC
Permalink
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the searchstring
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
hjpal
2007-03-12 12:47:10 UTC
Permalink
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 expect
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"
Post by Hilary Cotter
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the searchstring
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
Gang_Warily
2007-03-14 12:36:10 UTC
Permalink
Try
ixQuery.AllowEnumeration = True
or is that what you did ?

Also see "Unable to search by directory names..." above.

Eric
Post by hjpal
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 expect
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"
Post by Hilary Cotter
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the
searchstring
Post by Hilary Cotter
Post by hjpal
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
Gang_Warily
2007-03-14 12:38:00 UTC
Permalink
Try
ixQuery.AllowEnumeration = True
Or is that what you did ?

See also thread "Unable to search by directory names..." above ?

Eric
Post by hjpal
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 expect
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"
Post by Hilary Cotter
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the
searchstring
Post by Hilary Cotter
Post by hjpal
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
Hilary Cotter
2007-03-14 12:56:06 UTC
Permalink
Are you searching on path? It should show up in path.
--
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
Post by hjpal
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 expect
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"
Post by Hilary Cotter
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the
searchstring
Post by Hilary Cotter
Post by hjpal
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
hjpal
2007-03-15 11:42:37 UTC
Permalink
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.
Post by Hilary Cotter
Are you searching on path? It should show up in path.
--
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
Post by hjpal
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 expect
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"
Post by Hilary Cotter
set allowenumeration to true.
--
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
Post by hjpal
I am using this for the search in the filesystem.
Doing a seach documents and there path are retrieved when the
searchstring
Post by Hilary Cotter
Post by hjpal
contains words that match words in the filename or conents of the file.
Using words that match only words in the path to the filename gives no
match.
Is that not possible?
Loading...