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



Oct 18, 2011, 1:02 PM
3 Posts
topic has been resolvedResolved

Full text search in view panel searching for content with quotes

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: full text search,view panel
  • Replies: 2
I want to search for an item value containing quotes. For example: Test with "quotes".
 
What query do I have to use in the search property of the view data source of the view panel to find the document containing the item value.
 
The following does not work:
'FIELD fieldXY = Test with "quotes"*';
'FIELD fieldXY = Test with \"quotes\"*'; 
 
 
Thanks
Oct 25, 2011, 6:25 PM
149 Posts
Re: Full text search in view panel searching for content with quotes
Something like this should work (not tested)
 
 
"FIELD Subject = \"" + q + "\" OR FIELD CATEGORY = \"" + cat + "\""
 

 
"FIELD Subject Contains \"" + q + "\""
 
 
/Thomas
 
 
 
Nov 4, 2011, 10:52 AM
3 Posts
Re: Full text search in view panel searching for content with quotes
Thanks for your suggestion, but in my tests this doesn't seem to work either.
 
To overcome the problem I replaced the quotes with " AND ". So a query with a search string 'test with "q"' would lead to a query:
 
FIELD Subject = "test with " AND "q"
 
(I enclosed the single parts of the search value additionally in quotes)

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