16 |
|
|
17 |
<script type="text/javascript"> |
<script type="text/javascript"> |
18 |
var args=getArgs(); |
var args=getArgs(); |
19 |
|
function select_option(value,text,selected) { |
20 |
|
document.write('<option value="'+value+'"'); |
21 |
|
if (value == selected) document.write(' selected'); |
22 |
|
document.write('>'+text+'</option>'); |
23 |
|
} |
24 |
</script> |
</script> |
25 |
|
|
26 |
<form name="search" onsubmit="return go(this);"> |
<form name="search" onsubmit="return go(this);"> |
27 |
<font color="maroon"><b>Query:</b></font> |
<font color="maroon">Query</font> |
28 |
|
<script type="text/javascript"> |
29 |
|
document.write('<select name="index_name">'); |
30 |
|
select_option("lorem","Lorem example",args.index_name); |
31 |
|
select_option("words","Words from dict",args.index_name); |
32 |
|
document.write('</select>'); |
33 |
|
</script> |
34 |
|
for |
35 |
<script type="text/javascript"> |
<script type="text/javascript"> |
36 |
document.write("<input name=\"query\" value=\""); |
document.write("<input name=\"query\" value=\""); |
37 |
|
|
38 |
if(args.search) |
if (args.query) { |
39 |
{ |
var search_string = args.query.replace(/\+/gi," "); |
|
var search_string = args.search.replace(/\+/gi," "); |
|
40 |
document.write(search_string); |
document.write(search_string); |
41 |
} |
} |
42 |
|
|
48 |
|
|
49 |
<script type="text/javascript"> |
<script type="text/javascript"> |
50 |
|
|
51 |
if (args.search) |
if (args.query) { |
|
{ |
|
52 |
document.write("<div id=\"results\"><h2>Please wait...</h2></div>\n"); |
document.write("<div id=\"results\"><h2>Please wait...</h2></div>\n"); |
53 |
doSearch(args.search, printResults); |
doSearch(args.index_name, args.query, printResults); |
54 |
} |
} |
55 |
|
|
56 |
</script> |
</script> |
59 |
results will be only those documents which contain <b>ALL</b> of the |
results will be only those documents which contain <b>ALL</b> of the |
60 |
requested keywords</p> |
requested keywords</p> |
61 |
|
|
62 |
|
<div id="debug" style="color: gray;"> |
63 |
|
</div> |
64 |
|
|
65 |
</body> |
</body> |
66 |
</html> |
</html> |