cancel
Showing results for 
Search instead for 
Did you mean: 

If text contains bracket like 'Mega (Check)', no results

sivaanagha
Champ in-the-making
Champ in-the-making
Hi,
for searchByText call if text contains bracket like "Mega (Check) up Camp from Mahindra", results are not coming.

i am using ISO9075.encode(text) also.

query is (@cm\:content:text)

please help here.

Thanks,
Siva.
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
You need that encoding incase you are trying to search for the folder name or file name.
Remove the encoding and try with free text search query like TEXT:"your phrase".
This should server your purpose.

sivaanagha
Champ in-the-making
Champ in-the-making
thanks.

if text starts with any special character like" $, *,#" whether  we can use encode or not. how can we get the results.


regards,
Siva.

mitpatoliya
Star Collaborator
Star Collaborator
In any case if you are placing the text between double quotes you need not to encode the things.
Not sure about $ and #. :roll:

andy
Champ on-the-rise
Champ on-the-rise
Hi

ISO9075 encoding is only required for PATH and QNAME.

Text content is tokenised - which means punctuation () etc will be ingnored.
Punctuation should also be ignored when the query is generated.
If you encode the () then they wil not be treated correctly.

Always include the actual query you execute - after any encoding you may do ….

So drop the encoding, and put it in quotes.

If you do not put () in quotes (or escape it) it will be treated as part of the query syntax.

Andy