Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A starting point for the XML search feature

Search

A starting point for the XML search feature

by  davidt50  Posted    (Edited  )
I am posting an html file to help when people develop custom search pages. This html contains all of the components supported ( as far as I can tell ) in the xml/url search feature. My understanding is you can send in components as well and not need the entire page.
--------------------------------------------------------
Code:
<HTML>
	<BODY>
		<FORM ACTION="http://localhost/livelink/livelink.exe" METHOD="POST" NAME="searchFrm" >
			<!-- Your prompts to the user here -->
			<BR>
			<INPUT TYPE="HIDDEN" NAME="func" VALUE="search" >
			<TABLE>
				<TR BGCOLOR="#CCCCCC">
					<TD COLSPAN="2">
					<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">
					<B>NLQ Search</B>
					</FONT>
					</TD>
				<TR>
					<TD></TD>
					<TD>Enter a Natural Language Query:
					ááá
					<SELECT NAME="NLQMode">
					<OPTION VALUE="KeywordExtraction">Keyword Extraction</OPTION>
					<OPTION VALUE="LivelinkAware">Livelink Aware</OPTION>
					</SELECT>
					</TD>
				</TR>
				<TR>
					<TD></TD>
					<TD><TEXTAREA NAME="NLQ" COLS="60" ROWS="4" wrap=soft></TEXTAREA></TD>
				</TR>
				<TR BGCOLOR="#CCCCCC">
					<TD COLSPAN="2">
					<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">
					<B>Full Text</B>
					</FONT>
					</TD>
				</TR>
				<TR>
					<TD>
					</TD>
					<TD>
						<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">Look For:</FONT>
						<SELECT NAME="mode1">
						<OPTION VALUE="Nl" >Answer to a Question </OPTION>
						<OPTION VALUE="And"  SELECTED>All Words </OPTION>
						<OPTION VALUE="Or" >Any Words </OPTION>
						<OPTION VALUE="Exact" >Exact Phrase </OPTION>
						<OPTION VALUE="LivelinkQuery" >Complex Query </OPTION>
						</SELECT>
						áááá
						<FONT SIZE="2" FACE="Arial,Helvetica,sans-serif">Modifier:</FONT>
						<SELECT NAME="modifier1">
						<OPTION VALUE=""><None></OPTION>
						<OPTION VALUE="defaultthesaurus" >Synonyms Of</OPTION>
						<OPTION VALUE="stem" >Related To</OPTION>
						<OPTION VALUE="phonetic" >Sounds Like</OPTION>
						<OPTION VALUE="righttruncation" >Word Begins With</OPTION>
						<OPTION VALUE="lefttruncation" >Word Ends With</OPTION>
						</SELECT>
					</TD>
				</TR>
				<TR>
					<TD>
					</TD>
					<TD>
						<INPUT TYPE="text" NAME="where1" VALUE="help" SIZE="50">
						áwithiná
						<SELECT NAME="within1">
							<OPTION VALUE="All"  SELECTED>All</OPTION>
							<OPTION VALUE="content" >Content</OPTION>
							<OPTION VALUE="metadata" >MetaData</OPTION>
						</SELECT>

					</TD>
				</TR>
				<TR>
					<TD>
						<SELECT NAME="option2">
						<OPTION VALUE="Or"  SELECTED>Or</OPTION>
						<OPTION VALUE="And" >And</OPTION>
						<OPTION VALUE="And-Not" >Not</OPTION>
						</SELECT>
					</TD>
					<TD>
					</TD>
				</TR>
				<TR>
					<TD>
					</TD>
					<TD>
						<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">Look For:</FONT>
						<SELECT NAME="mode2">
						<OPTION VALUE="Nl" >Answer to a Question </OPTION>
						<OPTION VALUE="And"  SELECTED>All Words </OPTION>
						<OPTION VALUE="Or" >Any Words </OPTION>
						<OPTION VALUE="Exact" >Exact Phrase </OPTION>
						<OPTION VALUE="LivelinkQuery" >Complex Query </OPTION>
						</SELECT>
						áááá
						<FONT SIZE="2" FACE="Arial,Helvetica,sans-serif">Modifier:</FONT>
						<SELECT NAME="modifier2">
						<OPTION VALUE=""><None></OPTION>
						<OPTION VALUE="defaultthesaurus" >Synonyms Of</OPTION>
						<OPTION VALUE="stem" >Related To</OPTION>
						<OPTION VALUE="phonetic" >Sounds Like</OPTION>
						<OPTION VALUE="righttruncation" >Word Begins With</OPTION>
						<OPTION VALUE="lefttruncation" >Word Ends With</OPTION>
						</SELECT>
					</TD>
				</TR>
				<TR>
					<TD>
					</TD>
					<TD>
						<INPUT TYPE="text" NAME="where2" VALUE="triumph" SIZE="50">
						áwithiná
						<SELECT NAME="within2">
							<OPTION VALUE="All"  SELECTED>All</OPTION>
							<OPTION VALUE="content" >Content</OPTION>
							<OPTION VALUE="metadata" >MetaData</OPTION>
						</SELECT>
					</TD>
				</TR>
				<TR BGCOLOR="#CCCCCC">
					<TD COLSPAN="2">
					<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">
					<B>Scope</B>
					</FONT>
					</TD>
				</TR>
				<TR>
					<TD>

					</TD>
					<TD>
						<SELECT CLASS="searchBut"  MULTIPLE NAME="broker" SIZE="4">
							<OPTION  VALUE="123550">Admin Help
							<OPTION  VALUE="128605">Builder Documentation
							<OPTION SELECTED VALUE="2245">Enterprise
							<OPTION  VALUE="2249">Enterprise [All Versions]
							<OPTION  VALUE="133788">Help
						</SELECT>
					</TD>
				</TR>
				<TR BGCOLOR="#CCCCCC">
					<TD COLSPAN="2">
					<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">
					<B>Output Options</B>
					</FONT>
					</TD>
				</TR>
				<TR>
					<TD>
					</TD>
					<TD>
						<TABLE BORDER="1">
							<TR>
								<TD>
									<FONT SIZE="2" FACE="Arial,Helvetica,sans-serif">Format:</FONT><BR>
									<INPUT TYPE="RADIO" NAME="outputformat" VALUE="fullhtml" CHECKED  > Normal
									<BR>
									<INPUT TYPE="RADIO" NAME="outputformat" VALUE="htmlbody" > Raw Resultsá
									<BR>
									<INPUT TYPE="RADIO" NAME="outputformat" VALUE="xml" > XML Resultsá
								</TD>
								<TD>
									<FONT SIZE="2" FACE="Arial,Helvetica,sans-serif">Result Set Range:</FONT><BR>
									Start At:áááááá<INPUT TYPE="text" NAME="StartAt" VALUE="1" SIZE="4"><BR>
									How Many:á<INPUT TYPE="text" NAME="goFor" VALUE="10" SIZE="4"><BR>
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
				<TR BGCOLOR="#CCCCCC">
					<TD COLSPAN="2">
					<FONT FACE="Arial,Helvetica,sans-serif" SIZE="2">
					<B>Action</B>
					</FONT>
					</TD>
				</TR>
			</TABLE>

			<INPUT TYPE="SUBMIT" Value="Search">
			<BR>
		</FORM>
	</BODY>
</HTML>
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top