This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 25, 2012, 5:38 AM
32 Posts

Breaking search functionality

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: search,development
  • Replies: 1
If you search using the string 'or' in this forum, the search breaks.
 
This does the same thing in my app, except that I store the search string in a sessionScope variable, so the app breaks until the user logs out and back in as the 'or' is in the search criteria.
 
Does anyone have all the elements that should be searched and replaced to ensure the search works and does not get broken by things like this?  Does this code already exist somewhere?
 
May 25, 2012, 9:17 AM
126 Posts
Re: Breaking search functionality
The reason that searching for "or" is breaking is because its a keyword, similar to an SQL query you can use "and", "or", "not" to search for values. so when your typing "or" its looking for "<value1> or <value2>"
 
you can fix this by escaping"or" to "\or".
 
I don't have a list of them to hand, I'm sure its on google somewhere. 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal