FIND Goes down causes errors

Vote:
 

Hi,

occasionally when FIND goes down our pages tend to throw an exception which we can't seem to catch correctly.

Server side we have this sort of thing:

try {

.....

Results = query.GetResult(hitSpec);

......

}

catch(exception ex) {
....
}



Then in the front end we have this:

<% if (results !="null)" { %>

<% if (query !="null" && query !="" ) { %>

Your search for '<%: query %>' resulted in <%: results.totalmatching %> matches

<% } %><% } %>

The Results != null does not seem to catch a NULL.

Has anyone found a way to combat this?

Jon

#150955
Jul 05, 2016 12:16
Vote:
 

"FIND goes down" - "you receive zero results" or "FIND replies with network level exceptions"?

What is value for variable "Results" when FIND goes down?

What kind of exception is thrown in cases of FIND goes down?

#151206
Jul 13, 2016 11:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.