Custom sharepoint search does not work : what am I doing wrong?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: why cant I go part time!!!
    ... rotatating rest days so work weekends as well. ... time.I have asked 4 different people, last manager,present manager, union ... union rep and a colleague, it was about going part time.A couple of weeks ...
    (uk.legal)
  • Re: why cant I go part time!!!
    ... rotatating rest days so work weekends as well. ... time.I have asked 4 different people, last manager,present manager, union ... union rep and a colleague, it was about going part time.A couple of weeks ...
    (uk.legal)
  • Re: why cant I go part time!!!
    ... rotatating rest days so work weekends as well. ... time.I have asked 4 different people, last manager,present manager, union ... union rep and a colleague, it was about going part time.A couple of weeks ...
    (uk.legal)
  • Re: The Keyboard Apple Should Make
    ... A colleague of mine did that. ... "In no part of the constitution is more wisdom to be found, ... than in the clause which confides the question of war or peace ...
    (comp.sys.mac.hardware.misc)
  • Re: Equal pay
    ... colleague gets additional money for service experience etc ... example at the beginning of the financial year, it's just a clause added to the contract to say pay is now xxx per hour. ... Best option is to approach your line manager then and question the wage difference, you will probably get the answer that your colleague is more experienced than you and served the company longer ...
    (uk.legal)