I'm running my server on Win 2000 Server. I'm having difficulties in indexing my knowledge base articles to only search based on the document title.
For example when i key in to search articles relating to Microsoft Words... other articles without the keywords are also shown in the list. Thus creating a long list of irrelavant articles. I have attached the document that does the search and below is the abstract that searches the articles.
Anyone out there who knows how to go around this... Please HELP.. Thank you
sub SetQueryAndUtilObjectsProperties(byref tobjQuery, byref tobjUtility, _
tstrFileTypes, tstrQueryProperty, tstrSearchString, tstrFormScope)
'set the target search property (all text, keywords only, etc)
'take out the noise word "not"
if Instr(1,tstrSearchString,"not")>0 then
strCompSearch = " (#filename " & tstrFileTypes & ") AND (" & tstrQueryProperty & replace(tstrSearchString, "not", "") & ")"
strCompSearch = " (#filename " & tstrFileTypes & ") AND (" & tstrQueryProperty & tstrSearchString & ")"
tobjQuery.Query = strCompSearch
tobjQuery.SortBy = "vpath[a]"
tobjQuery.Columns = "DocTitle, vpath, filename, size, write, characterization, rank"
tobjQuery.MaxRecords = 300
tobjQuery.Catalog = "web"
tobjQuery.LocaleID = GetLocale()
SetScopeForQuery tobjQuery, tobjUtility, tstrFormScope