Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing directories from index server

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
Hi

I have got a search on a website that is using index server as the backend indexing technology. I want to be able to remove certain directories from the search, so that they don't show up in the search results. I have tried some code and that doesn't appear to work, I have also turned the 'index this directory' value off for the directories i don't want, yet they are still showing up in the results.

Is there any way that i can remove these directories from the search in another way ?

Also, on another point when i do a search for a common word on the site - like press release for instance - I am getting duplicate results for the same file, is there any way that i can stop duplicate records appearing ?

any ideas ?
 
For the duplicates, do you have duplicates of the file on your server? If you do, then they will show up in the search.

As for the search problem of including directorys that you dont want, what we had to do, is go into the index server console (index server manager) and then go into the web portion, then into direcories. We then had to create directories that were pointed to the directories we DIDNT want included. We would then at that time, mark them as 'not included' in the search. (exclude scope). Then we had one default entry and that was the root for us. This one was included. But anytime we make a new directory and we DONT want it included, we have to create a new web directory and change its scope to exclude it.
I hope that made sense.

Also, if you are going to have this search, and you also have flash files, js, cgi, and so forth, you will need to go edit your config files. For me it was query.htx, query.idq .

If you have any questions just ask!
donn
 
I'm glad you asked this question arperry. We are considering using Index Server and were concerned about this very question. We have a FrontPage website with two subwebs within it, so we need to keep the searches separate.

The other question we have is does Index Server have the ability to only search a designated subweb and exclude the root web and the second subweb?

Much obliged for any help you can provide...
 
Kinl

about the duplication bit first:

there are no duplicate files on the server, there are however duplicate matches in the returned file for the search criteria, this i believe why i am getting the multiple results for the file. is there anyway of stopping this from happening. so if it has found the criteria in the file then move to the next file to search.

as for the directory removing:

at the moment i have got a catalog that points at the virtual server for the site, are you saying that if i add a directory to this catalog, and say exclude, that will not show up in the search results ?


kbritt

this is how i have excluded information from the default catalog (corpus) from being displayed

Q.Catalog = "newcatalog"

so if you have a root web that contains everything, and then the two seperate subwebs you can specify which one to seach using the above code in the search.

hope this helps !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top