cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene query not working from Repository Web Service

aniruddh
Champ in-the-making
Champ in-the-making
Hi,
   The following Lucene query does not return any node when using the query method in RepositoryService.

app:company_home/cm:WCCC_x0020_Demo/cm:Inmates/cm:Active/cm:Ani_x002c__x0020_Ani/cm:_x0030_2-28-2008/cm:Booking

The node exists and is returned when the same query is executed via the SearchService component from Web Client.

Does this have to do with the special characters in the path?

Thanks
3 REPLIES 3

robertoroberto
Champ in-the-making
Champ in-the-making
Hi, You should try to replace blank character " "   with  "_x003a_" string.

dajoropo
Champ in-the-making
Champ in-the-making
Hello,

I have a similar question. I'm trying to make a call to lucene by web service, but I'm having errors when some characters are searched, for example ','. Is there any place where I can look the characters that have to be replaced?

This is an example query

PATH:"/app:company_home/cm:Etudiants/cm:Dossier_x0020_Etudiant/cm:Bolson,"_x003a_"Frodo"_x003a_"123456"

I've replaced the blank spaces by _x003a_ but what for the comma (,)?? Are there anymore special chars?

Thanks in advance

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

There is an ISO9075 encoding class to help with this.

Andy