Hi all,
Today when i was created some folder with numeric and firing the lucene query on that folder i found something wired.
I have 2 folder in Company Home with document
Folder1:-1
Folder2:-S1
When i was firing the below query from Node Browser Its not giving the result
PATH:"//app:company_home/cm:1//*"
Error:-
01280100 Request failed 400 /solr4/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=100&df=TEXT&start=0&locale=en_US&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON
When i was firing this:
PATH:"//app:company_home/cm:S1//*"
Result:- Document Found
So i started playing with it and found below query is not working...
PATH:"//app:company_home/cm:1//*"
PATH:"//app:company_home/cm:1asdasda//*"
PATH:"//app:company_home/cm:14564546546//*"
Solr version :- 4.10.3
Any suggestion to resolve it?
Solved! Go to Solution.
Hello,
There is a lot of thread in the forum with this topic
Query Lucene parse error QName with numbers
A numeric character at the beginning of a name is not valid in this context you must to encode it to his ISO9075 representation.
Here is the some documentation:
https://community.alfresco.com/docs/DOC-4673-search#jive_content_id_XPath
Regads
Hello,
There is a lot of thread in the forum with this topic
Query Lucene parse error QName with numbers
A numeric character at the beginning of a name is not valid in this context you must to encode it to his ISO9075 representation.
Here is the some documentation:
https://community.alfresco.com/docs/DOC-4673-search#jive_content_id_XPath
Regads
This
PATH:"//app:company_home/cm:1//*"
Converted to this
PATH:"//app:company_home/cm:_x0031_//*"
When you wanted to work with number at the starting of folder name.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.