Index Server Example

Source: Internet
Author: User
<title>iskeyword.asp</title>
<form action = "iskeywordrespond.asp" method= "Get" >
Choose the Word you Want to Search for::<p>
Search Word: <input name= "Keyword" size = "><br>"
<input type= "Submit" value= "Find the Documents!" >
</form>
</body>The iskeywordrespond.asp looks like this:
<title>iskeywordrespond.asp</title>
<body>
<%
Set objquery = Server.CreateObject ("Ixsso.query")
Set objutil = Server.CreateObject ("Ixsso.util")
My_keyword=request ("keyword")
Objquery.catalog= "Learnasp"
' Keyword search
Myquery=myquery & "$contents" & My_keyword
' Exclude Specific folders
%>
<!--#include virtual= "/search/exclude.asp"-->
<%
' Exclude specific filenames
Myquery=myquery & "and not #filename indexmaster.asp"
Myquery=myquery & "and not #filename index.asp"
Myquery=myquery & "and not #filename indexold.asp"
' Exclude specific extensions
Myquery=myquery & "and not #filename *.| (txt|,inc|,htm|,mdb|,cnt|,class|,toc|,html|,css|) "
Objquery.query=myquery
Objquery.columns = "Vpath, DocTitle, Filename, characterization, contents,dockeywords, Rank"
Objquery.sortby = "Rank [d]"
Objquery.maxrecords = 50
Objutil.addscopetoquery objquery, "/", "DEEP"
Linebr= "<br>" & vbCrLf
Set rstemp = Objquery.createrecordset ("nonsequential")
Do UNTIL rstemp.eof
For each key in Rstemp.fields

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.