Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Hyperlink interfacing to Document Search

  Asked By: Jyoti    Date: Aug 31    Category: Sharepoint    Views: 1513

I need a solution to trigger document search into SharePoint Portal by
clicking on an hyperlink from other web pages.

For example, in a Crystal Report, we can generate book listing with each
listed book tied with hyperlink that are somewhat like the following:

sharepointserver/.../searchinterface.asp
7-65-4321-0

and when the hyperlink is clicked, the user will have the SharePoint Search
page displayed and listing all documents with isbn property equals to
987-65-4321-0 (of course assuming related propery and values have been set
and entered)

If there is anyone with such solution and can share with me, I will be
overjoy ... I'm not really hoping for this.

But I will be very happy to hear any ideas or understanding of existing
SharePoint resources (plus existing asp files etc.) that have high potential
of achieving the target with further modification (and please also let me
know where the potential is...)

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Stacey Wilder     Answered On: Aug 31

I did some research on this topic for another poster on the msnews
group.

search.communities.microsoft.com/.../...wFrame.asp
SharePoint
&sLCID=US&sgroupURL=microsoft.public.sharepoint.portalserver&sMessageID=
%253CuJhmOPxzCHA.2868@TK2MSFTNGP12%253E

That URL may or may not work, and likely wraps. So do a search  for a
message from Wayne with subject of

 
Answer #2    Answered By: Francis Vargas     Answered On: Aug 31

Now I finally got a solution  to my earlier question - a search  url into
SharePoint Portal Server 2001 - right NOT v.2

Thanks

I have two asp  files.

One asp is for searching by property, similiar to the effect of using
Advance Search to search documents  with one specific property  contains
certain value.

usage syntax is like this:

<sharepointserver/.../searchinterface.asp" target="_blank" rel="nofollow">sharepointserver/.../searchinterface.asp
<sharepointserver/.../searchinterface.asp" target="_blank" rel="nofollow">sharepointserver/.../searchinterface.asp
<sharepointserver/.../searchinterface.asp
87-65-4321-0>
sharepointserver/.../searchproperty.asp
-65-4321-0

The searchproperty.asp file contain is as below: (You will need to update
the http://sharepointserver/workspace/ <http://sharepointserver/workspace/>
... to the names of your environment
___________________________________________________________________

<%Response.Expires=0%>
<HTML>
<HEAD>
<TITLE>Search By Property</TITLE>
<%
sProperty = Request.QueryString("Property")
sValue = Request.QueryString("Value")
%>
<script language="JavaScript">
function submitform()
{
document.forms(0).submit();
}
</script>
</HEAD>
<BODY onload="submitform()">
<FORM method="post" action="
http://sharepointserver/workspace/Portal/Search/
<http://sharepointserver/workspace/Portal/Search/> "
name="publishing_SearchForm">
<INPUT type="hidden" name="publishing_q_ShowAdvanced" value="0" />
<INPUT type="hidden" name="publishing_q_StartResultRow" value="0" />
<INPUT type="hidden" name="publishing_q_CarriedBestBetCount" value="0" />
<INPUT type="hidden" name="SubscribedSearch" value="WITH ( Contents:0.5,
"urn:schemas-microsoft-com:office:office#Author":0.5,
"urn:schemas-microsoft-com:office:office#Keywords":0.8,
"urn:schemas-microsoft-com:office:office#Subject":0.8,
"urn:schemas-microsoft-com:office:office#Title":0.8,
"urn:schemas.microsoft.com:fulltextqueryinfo:description":0.8) AS
#WeightedProps CONTAINS("urn:schemas-microsoft-com:office:office#<%=
sProperty %>", '"<%= sValue %>"') AND NOT
("DAV:contentclass" = 'urn:content-classes:categoryfolder') AND
NOT ("DAV:contentclass" =
'urn:content-classes:rootcategoryfolder') ORDER BY
"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC" />
</FORM>
</BODY>
</HTML>
___________________________________________________________________

The second file initiate a simple search. All you need is to pass a value
like using the simple search feature.

usage syntax is like this:

<sharepointserver/.../searchinterface.asp" target="_blank" rel="nofollow">sharepointserver/.../searchinterface.asp
<sharepointserver/.../searchinterface.asp" target="_blank" rel="nofollow">sharepointserver/.../searchinterface.asp
<sharepointserver/.../searchsimple.asp?valu>
sharepointserver/.../searchsimple.asp
The searchsimple.asp file contain is as below: (Again you will need to
update the http://sharepointserver/workspace/
<http://sharepointserver/workspace/> ... to the names of your environment
___________________________________________________________________

<%Response.Expires=0%>
<HTML>
<HEAD>
<TITLE>Search Simple</TITLE>
<%
sValue = Request.QueryString("Value")
%>
<script language="JavaScript">
function submitform()
{
//alert('Value is /' + '<%= sValue %>' + '/');
document.forms(0).submit();
}
</script>
</HEAD>
<BODY onload="submitform()">
<FORM method="post" action=" http://sharepointserver/workspace
<http://sharepointserver/workspace/Portal/Search/> /Portal/Search/
<http://swsgzspsp01/OurSharingPoint/Portal/Search/> "
name="publishing_SearchForm">
<INPUT type="hidden" name="publishing_q_ShowAdvanced" value="0" />
<INPUT type="hidden" name="publishing_q_StartResultRow" value="0" />
<INPUT type="hidden" name="publishing_q_CarriedBestBetCount" value="0" />
<INPUT type="hidden" name="SubscribedSearch" value="WITH ( Contents:0.5,
"urn:schemas-microsoft-com:office:office#Author":0.5,
"urn:schemas-microsoft-com:office:office#Keywords":0.8,
"urn:schemas-microsoft-com:office:office#Subject":0.8,
"urn:schemas-microsoft-com:office:office#Title":0.8,
"urn:schemas.microsoft.com:fulltextqueryinfo:description":0.8) AS
#WeightedProps
((CONTAINS("urn:schemas-microsoft-com:publishing:BestBetKeywords",
'"""<%= sValue %>"""') RANK BY
COERCION(absolute, 999)) OR
((FREETEXT("urn:schemas-microsoft-com:publishing:BestBetKeywords",
'"<%= sValue %>"') RANK BY COERCION(multiply, 0.5)) RANK BY
COERCION(add, 500)) OR ((FREETEXT(#WeightedProps, '"<%= sValue
%>"') OR CONTAINS("DAV:displayname", '"""<%=
sValue %>"""')) RANK BY COERCION(multiply, 0.6)) ) AND NOT
CONTAINS("DAV:contentclass", 'categoryfolder') AND NOT
CONTAINS("DAV:contentclass", 'rootcategoryfolder') ORDER BY
"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC" />
</FORM>
</BODY>
</HTML>
___________________________________________________________________

Note that if you have parameters with blanks, they need to be converted to
%20

 
Didn't find what you were looking for? Find more on Hyperlink interfacing to Document Search Or get search suggestion and latest updates.




Tagged: