02-28-2019 09:05 AM
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?
02-28-2019 07:33 PM
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
02-28-2019 07:33 PM
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
03-01-2019 08:45 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.