Custom sharepoint search does not work : what am I doing wrong?
- From: Omar <bajaber@xxxxxxxxx>
- Date: Tue, 24 Jul 2007 04:01:22 -0700
A colleague had done a simple application to perform a customised
search. So I followed the same steps to configure it in my machine
which also has SPS 2003. The instruction was to just replace the
Portal URL and deploy it somewhere inside the _layouts folder. I
replaced the web.config key to use my machine name as below
<appSettings>
<add key="PortalUrl" value="http://myMachineName/"/>
<add key="DocumentLibrary" value="Document Library"/>
</appSettings>
Now when I try to search, the results are 0. Nothing returned. When I
debug, I see this:
"SELECT \"DAV:href\" , \"DAV:displayname\" FROM ( TABLE
Portal_Content..Scope() UNION ALL TABLE Non_Portal_Content..Scope() )
WHERE CONTAINS (\"urn:schemas-microsoft-com:office:office#ows_Name
\" , '\"Omar*\"') "
So I decided to simplify it and used it without the where clause:
"SELECT \"DAV:href\" , \"DAV:displayname\" FROM ( TABLE
Portal_Content..Scope() UNION ALL TABLE Non_Portal_Content..Scope() )"
However, I am still getting zero results.
Where am I going wrong? Is there more information I need to provide to
you guys? The normal sharepoint search returns the results as
expected.
Thanks in advance,
Omar
.
- Prev by Date: RE: MossMenu Error
- Next by Date: adding an item in sharepoint search drop down (SPS 2003)
- Previous by thread: RE: MossMenu Error
- Next by thread: adding an item in sharepoint search drop down (SPS 2003)
- Index(es):
Relevant Pages
|