not able to search files/folder using ampersand(&)

cancel
Showing results for 
Search instead for 
Did you mean: 
Established Member

not able to search files/folder using ampersand(&)

I am trying to search files using ampersand.

I have created a file with name "abc & xyz" on a fresh installation of alfresco 5.2.

now, I am trying to search the file but it is not considering ampersand.

I am able to search with 'abc' or 'abc*' because it is reading characters "abc" but when I try to search with 'abc &' or abc &* or &, its not working. 

when trying to search with abc & abc, the value goes on url - "abc %26 abc" instead of "abc & abc".

can anyone help me with handling ampersand for searching ?

thanks in advance.

3 Replies
Senior Member

Re: not able to search files/folder using ampersand(&)

Hi,

I think you must to escape the character '&'. Please, try something like this:

'abc \&'

"abc \&"

Regards,

clv

Senior Member

Re: not able to search files/folder using ampersand(&)

Hi, Monica kumari

 

when you trying to search with abc & abc, the value goes on url - "abc %26 abc" instead of "abc & abc" because

While searching you got' abc %26 abc 'in url because it encodes the string which you have entered.

Please refer this 

How to search text with special character? 

UTF-8 Character encoding issue 

Thanks,

Kalpesh

Senior Member

Re: not able to search files/folder using ampersand(&)

Hi

It is not clear what you are trying do. If the & is critical in the query you need to quote the string and ask for an exact match. Just escaping the \& will not do much ...

="abc & xyz"

Andy