cancel
Showing results for 
Search instead for 
Did you mean: 

XPath query fails

leonardo_celati
Champ in-the-making
Champ in-the-making
I am trying to execute a simple xpath search in the Share Node Browser , however I am not able to understand why it fails, even if I am quite confident with xpath search in general.

Basically I want all node under cm:multilingualRoot with a given cm:name. The purpose is to eventually build a Web Script retrieving all the translation of a given html page in wcmqs, but this is another question.
For this xpath issue I have tried the following:


/cm:multilingualRoot/cm:mlContainer[@cm:name='myfile.html']
/cm:multilingualRoot/cm:mlContainer//@cm:name='myfile.html'
/cm:multilingualRoot/cm:mlContainer//.[@cm:name='myfile.html']
……

(many other tentatives)


But it results in an error:


0503252162 Request failed 500 /solr/alfresco/afts?wt=json&fl=DBID%2Cscore&rows=100&df=TEXT&start=0&locale=it&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON


Do you have any suggestions ?
3 REPLIES 3

Thanks, I had a look at such post, but I completely ignored it because back in 2009.

However, running a jcr-xpath results in a <b>Unknown query language: jcr-xpath</b> I am using the very latest community edition and maybe there something missing in respect to the enterprise version.

I suppose I have to find other way for my script, I would try CMIS or Lucene, do you have any suggestion for that ?

I suggest you use lucene search language ,it is more powerful.
In javascript just call
search.luceneSearch