cancel
Showing results for 
Search instead for 
Did you mean: 

Searching with wild card (*)

camillo
Champ in-the-making
Champ in-the-making
Hi all,

I'm developing a web client for Alfresco. A feature of this web-client is that allows a search in some xml files, all named descriptor.xml, stored in various spaces in order to retrieve some informations.
So, for example, if my xml file is :

<SPACE>
   <SPACE-ATTRIBUTES>
      <DOCUMENT-TYPE>pdf</DOCUMENT-TYPE>
         <NAME>my_pdf.pdf</NAME>
   </SPACE-ATTRIBUTES>
</SPACE>

I would like looking for all documents which type is "pdf" and which name begins with "my_"
I perform this job using the query:

String query = "PATH:\"/app:company_home//*\" ";
query +=" AND @cm\\:name: descriptor.xml ";
query +=" AND TEXT:\"<DOCUMENT-TYPE>pdf</DOCUMENT-TYPE>" +"\" ";
query +=" AND TEXT:\"<NAME>my_*</NAME>\"";

but i have no results!!!
So, how can i use wild card * to perform my job?
If I replace

query +=" AND TEXT:\"<NAME>my_*</NAME>\"";
with

query +=" AND TEXT:\"<NAME>*\"";
i find all references to pdf files

Thanks in advance!

Camillo
2 REPLIES 2

camillo
Champ in-the-making
Champ in-the-making
Please, help me  Smiley Sad
I haven't yet found a solution to my problem!
Thanks in advance

camillo
Champ in-the-making
Champ in-the-making
Please help me…It's really urgent and i yet don't find a solution!!!!!
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.