Error When i Search Anything

Aug 8, 2011 at 4:00 PM

It's Pretty good webpart.

I am getting following error.  Can you help me to solve it.

SearchButton_Click: Scope in your query does not exist.
Source: Microsoft.Office.Server.Search
StackTrace: at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowBackwardCompatibleException(FaultException`1 ex) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.Execute() at AngryManSoftware.WebParts.AMFilteredSearch.SearchButton_Click(Object sender, EventArgs e)
InnerException:
The creator of this fault did not specify a Reason.
Source: mscorlib
StackTrace: Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Office.Server.Search.Query.ISearchQueryServiceApplication.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.<>c__DisplayClass4.b__3(ISearchServiceApplication serviceApplication) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName)

Look forward for your reply.

Many Thanks,

Hitesh

 

 

Coordinator
Aug 9, 2011 at 12:27 AM

Hi There Hitesh,

Can I ask you what version of SharePoint you are running? WSS, MOSS or 2010? Also, which version of the web part do you have? 0.96 (which is the current recommended download) or 0.97 (which is the beta version which can run under SharePoint 2010?)

Ron

Aug 9, 2011 at 2:19 AM

Ron,

Thank for the quick reply.

I am using this filtered search web part 0.96 on SharePoint 2010 (Standard with SP1).

I will try this 0.97 beta version and let you know the result.

Thanks,

Hitesh

 

Coordinator
Aug 9, 2011 at 2:30 AM

No worries Hitesh,

They changed the search (quite a bit) with SharePoint 2010, so version 0.96 certainly won't work. Hopefully 0.97 should fix that for you. Please give us some feedback about how well it works for you on SharePoint 2010.

Cheers

 

Ron

Aug 9, 2011 at 3:52 AM

Ron -

I deployed 0.97 Beta version of this Web Part with SharePoint 2010.

Filter is working Great. I like it. I am not getting any Error when i search anything from search text box.

But It's not showing any result related to search query.

It is showing following message.

"50 Documents found on this site (50 in libraries other than those specified in settings), none of which matched your selections".

Any Suggestion on how to fix it.

ALso is it possible to  search within document using this webpart?

Look forward for your reply.

Thanks,

Hitesh

Coordinator
Aug 9, 2011 at 6:14 AM
Edited Aug 9, 2011 at 6:16 AM

 

Hi Hitesh,

First of all, check that the document you are expecting to appear in the search results appears if you use the "normal" search. Go to the document library that you configured in the web part itself, and enter the same search term that you are trying to use in the web part. The (normal) search box is in the top right hand corner of the page (It will say "Search this site...").

You should get a bunch of results from the document library - and the search scope which shows up on the results page (just to the left of the search box that should have your query term in it) should say "This List: {Name of Library}" - that tells you that you just ran a search on just the library you are interested in.

If you get no results here, it means that either there really are no documents which match your search term in the library you are interested in (I'm assuming this is unlikely) OR it's that you are testing this on a document library that you have just set up and have only recently uploaded your "test" documents into. You need to wait until the indexing server has performed a full crawl and your documents can actually be found in the search index.

If your "normal" search returns hits for the documents that are in your library, but the web part doesn't, then the next test is to run the web part without checking any of the filters. The results should start with the line: "Results (no selections made - assuming no filtering)" - if it doesn't then you've got some of the filters selected. If *that* fails to return any hits, then I'd say we've got a bug.

Assuming that you *do* get hits when you enter the search term but no filters, then you need to check that the document(s) you expect to show up in the results have values for the columns you have selected in the web part options which match the values you have selected in the filter checkboxes. Also, begin by checking only *one* value for *one* column in testing, and make sure that the document in question really has that value set in that column.

Final two pieces of advice - firstly, documents which have blanks in the selected columns will probably never match your filter selections, because (as far as I remember) I haven't added in the option of treating a blank as a filter value (if I had, you would see "<blank>" as one of the options to choose from in the list of column values). Secondly, remember that multiple checkboxes in any one column act as though there is an OR operator between them, but that if there are several columns configured then the columns themselves act as though there is an AND between them. So if you look at the first sample screenshot on the home tab of this site, that example would look for any documents where "Document Type" was set to either "minutes" or "procedure" AND where the "Topic" was any one of "Strategy", "Remuneration", "Management" OR "Structure" (but NOT <blank>), AND it wouldn't care who the "Original Author" was, because nothing was selected in that column.

I hope this helps - let me know how you get on.

Cheers

Ron