|
Home > Archive > IIS Index Server > May 2004 > Search Filter Problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Search Filter Problem
|
|
| Ramanaji 2004-05-03, 4:34 am |
| Hi,
I am Ramanaji doing index server search. I want to fileter the files only
which started with *.htm. When I seach all the files also displying. In my
site have document also, so I dont want search document. Please tell me know
how to write the filter to search only htm file.
Thank you
Ramanaji
| |
| George Cheng [MSFT] 2004-05-03, 11:35 am |
| Turn off index files with unknown extentions. In your search page exclude
the file types you do not want to show up:
modify the Q.Query line in query.asp
The default reads: q.query=compsearch
and the new one should be:
q.query="("&compsearch&") and not #filename *.asp and not #filename *.htm
and not
#filename *.txt"
Just use whatever estensions you don't want to show up. In the example
above we
wouldn't show .txt, .asp, or .htm files. That's what the syntax should
look like
in the query.asp
Thank You
George Cheng
Microsoft Application Center & Index Server Support
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2004
All Rights Reserved
--------------------
| From: "Ramanaji" <ramanaji_b@hotmail.com>
| Subject: Search Filter Problem
| Date: Mon, 3 May 2004 13:49:25 +0530
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OlaWmdOMEHA.2488@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.inetserver.indexserver
| NNTP-Posting-Host: 202.153.44.34
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.inetserver.indexserver:28893
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| Hi,
|
| I am Ramanaji doing index server search. I want to fileter the files only
| which started with *.htm. When I seach all the files also displying. In my
| site have document also, so I dont want search document. Please tell me
know
| how to write the filter to search only htm file.
| Thank you
|
| Ramanaji
|
|
|
|
|
|
|
|