cancel
Showing results for 
Search instead for 
Did you mean: 

searchByText is not working if input text is alphanumeric

sivaanagha
Champ in-the-making
Champ in-the-making
for searchByText call if text contains alphanumeric like " 75 point Mega Check up Camp from Mahindra", results are not coming.

query is (@cm\:content:text)
(@cm\:content:_x0037_5_point_Mega_Check_up_Camp_from_Mahindra)
best regards,
Siva.
5 REPLIES 5

openpj
Elite Collaborator
Elite Collaborator
Which API are you using to execute queries against the repository?

sivaanagha
Champ in-the-making
Champ in-the-making
web service API is using.

query=(@cm\:content:_x0037_5_point_Mega_Check_up_Camp_from_Mahindra)
repositoryService.query(SpacesStore, query, false);


Thanks,
Siva.

openpj
Elite Collaborator
Elite Collaborator
Using the Web Services API you can execute queries only using the Lucene Query language and the query could be the following:

TEXT:"75 point Mega Check up Camp from Mahindra"
Hope this helps.

mitpatoliya
Star Collaborator
Star Collaborator
Also you need not to encode the text in this way.
I guess you are replacing the space with "_".
and instead of 75 you are using 7_5.
You need not to do that.
Keep that as it is and try.

sivaanagha
Champ in-the-making
Champ in-the-making
Thanks.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.