findinsite-ms runtime parameters
Runtime parameters are values sent from a form on a page to findinsite-ms.
They can either be values that a user has typed in (such as the search text)
or they can be hidden values that are specified in the HTML.
Here is a typical form that is used to send a search request to findinsite-ms:
This is the HTML used to make this form:
<FORM method='get' action="/findinsite/search.aspx">
Search for:
<INPUT NAME="Text" TYPE="TEXT" SIZE=20 MAXLENGTH=80>
<INPUT name='cs' type='hidden' VALUE="utf-8">
<INPUT TYPE="SUBMIT" VALUE="Search">
</FORM>
The URL for findinsite-ms is in the ACTION attribute of the FORM tag in the first line.
The actual URL you will have to use may be different from the example above.
(Note that findinsite-ms accepts both GET and POST form methods.)
Each INPUT tag in the HTML above represents a form runtime parameter.
In this case, there are three parameters:
- a "TEXT" type parameter called Text
that becomes the search text box on screen
- a "HIDDEN" parameter called cs
that specifies the charset of this page - more information.
- a "SUBMIT" type parameter that becomes a button on screen with a label "Search"
Adding more form runtime parameters
A list of all possible runtime parameters is shown below.
- For example, to change the number of hits that you want displayed per results sheet, then set the
ResultsPerSheet parameter.
This could be a text entry box, a radio box selection or a hidden fixed parameter. For example, to always display
5 hits per result sheet, add the following hidden parameter:
<INPUT NAME="ResultsPerSheet" TYPE="HIDDEN" VALUE="5">
- Runtime parameters are also used if you want to provide a Subset search option to users when
you have more than one search database available -
see here for full details.
Specifying runtime parameters in URLs
You can also specify runtime parameters directly in the URL given to findinsite-ms (using the GET method).
Ordinary searches can be run directly if you want.
For example, a search for "the end" can be sent using the following URL,
where the runtime parameters are shown in green.
http://localhostfindinsite/search.aspx?ResultsPerSheet=10&Text=%22the+end%22
A question mark must appear after the findinsite-ms primary URL. Then give a list of parameters
separated by & characters. Each parameter is the name, an equals sign and then the value.
URLs are not allowed to contain some characters, eg spaces and double quotes.
Therefore the search text "the end" must be changed into %22the+end%22.
The browser does this for you automatically if you use a standard web page form.
Runtime parameters list
The letter case of runtime parameters is ignored.
Parameter name |
Description |
Default |
cs |
If present, specifies the character set (charset) used on the page -
more information.
|
UTF-8 |
PickSubsets |
If present, indicates that
SubsetN parameters
are used to indicate the search database subsets that the user wants to use.
More information.
|
|
ResultsPerSheet |
How many pages to put on each results sheet
|
10 |
SheetNo |
The results sheet number, 0 or greater
|
0 |
SubsetN |
If PickSubsets present, each
Subset1, Subset2, etc.
parameter present indicates that the corrresponding search database subset should be searched.
More information.
|
|
Text |
The text to search for
|
|
config.aspx parameters |
getversiondetails |
If present, displays findinsite-ms information
|
|
showheaders |
If present, displays the headers sent by your browser
|
|
Dynamic database searching parameters |
db |
See the Dynamic database searching page
|
|
|