Spiderline
custom search engine solutions
Your Own Search Engine.
Just seconds after registering, your web site can be searchable with the features you want and reliability you need. No software to install or maintenance required. Search results can match your website design seamlessly.

Site Search Knowledge Base

Search  
   
Browse by Category
Site Search Knowledge Base .: Search Interface Guide

Search Interface Guide

The Bare Minimum

The components in the example below are mandatory for making your search interface work. ACCOUNT_NUMBER and SEARCH_SERVER should be replaced with values specific to your account (which can be found on the Account Home page after you login).

<form method="get" action="http://SEARCH_SERVER/exec/search">
<input type="text" size="25" name="q">
<input type="hidden" name="a" value="ACCOUNT_NUMBER">
<input type="submit" value="Search">
</form>


Enhancements

Search Box and Button

The input size may be changed in order to vary the length of the search box. The input value may also be changed to other text, such as "Find" or "Go!", or replaced with an image. Images must be specified by a full URL starting with http://   

Query Type

The query type indicates how the search terms entered by the user should be handled. There are two query types: raw and boolean. 'Raw' means that all words entered in the search interface will be searched for. Whereas, 'Boolean' means that the words "or", "and", and "not" will be interpreted as qualifiers for how to handle the search terms.

The Spiderline query default is "Boolean". To specify a query type you may add one of the following to your search interface form:

<input type="hidden" name="t" value="raw">
OR
<input type="hidden" name="t" value="boolean">

Boolean Setting

The boolean setting indicates whether the search terms are looked for together or separately. There are two boolean types: AND and OR. 'AND' denotes that all search words must be contained in a matching document. 'OR' means that matching documents contain at least one of the search words.

The Spiderline boolean default is "AND". To specify a boolean type you may add one of the following to your search interface form:

<input type="hidden" name="b" value="AND">
OR
<input type="hidden" name="b" value="OR">

Spiderline Defaults
Type of Query:   Boolean
Boolean Default:   AND

*NOTE  A boolean default may be specified with either query type.

Categories

You may want to split it into separate search categories to refine results further. To do this, fill in the Categories field on the URL Page. You will also need to make additions to the search interface. This should be done on both the search interface in your website's HTML and the search interface that will be displayed on the results page.

Example:

In the URL Categories field:

CATEGORY0 "Entire Website"
CATEGORY1 "Section 1"
http://www.mydomain.com/sect1/ INCLUDE
CATEGORY2 "Section2"
http://www.mydomain.com/sect2/ INCLUDE
CATEGORY3 "Section 3"
http://www.mydomain.com/sect3/ INCLUDE

In the website HTML:

<form method="get" action="http://www.spiderline.com/exec/search">
<input type="text" size="25" name="q">
<input type="hidden" name="a" value="account_number">
<select name="c">
  <option value="0"> Entire Website
  <option value="1"> Section 1
  <option value="2"> Section 2
  <option value="3"> Section 3
</select>
<input type="submit" value="Search">
</form>

In the Search Results and No Match Page Templates:

<form method="get" action="$(ACTION_URL)">
<input type="text" size="25" name="q" value="$(QUERY)">
<input type="hidden" name="a" value="$(ACCOUNT)">
$(FORM_CATEGORIES)
<input type="submit" value="Search">
</form>

How helpful was this article to you?

Related Articles

article Robot Exclusion Guide
The robots.txt file and robot META tags are methods used to allow and disallow crawling portions of your site by robots (web robots, spiders). Website administrators and content providers can...

  2005-01-20    Views: 22135   
article Supported Search Syntax
Phrase Searches To search for a complete phrase, place double quote characters around the phrase. Multiple terms or phrases can also be combined together with Boolean...

(No rating)  2005-05-24    Views: 17095   
article Does Spiderline offer professional services for integrating the search engine into my web site?
Spiderline offers professional services for integrating our search engine into your web site. For pricing and availability, please contact us.

  2005-01-20    Views: 13504   


.: Powered by Lore 1.5.3

Powered by Lucene