cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search Problem When folder name start with Numeric

shyam_ghodasra
Confirmed Champ
Confirmed Champ

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?

1 ACCEPTED ANSWER

roberto_gamiz
Star Contributor
Star Contributor

Hello,

There is a lot of thread in  the forum with this topic

Query Lucene parse error QName with numbers 

Lucene Search: Path Queries 

URGENT!!! Query String 

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

View answer in original post

2 REPLIES 2

roberto_gamiz
Star Contributor
Star Contributor

Hello,

There is a lot of thread in  the forum with this topic

Query Lucene parse error QName with numbers 

Lucene Search: Path Queries 

URGENT!!! Query String 

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

shyam_ghodasra
Confirmed Champ
Confirmed Champ

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.