cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search and Numbers (urgent)

roli8200
Champ in-the-making
Champ in-the-making
Hello

I try to get category based on a lucene search which contains one or all numbers:

var myCategory= search.luceneSearch('PATH:"/cm:generalclassifiable/FinancialYear/2006" );

But stangely it doesn't finds any category therefore it exists. This happens as soon as a number is in the name of the category. Does somebody has an idea why?  Searched all at google and in the forums but couldn't find any solution yet. Would be very thankful for any solution.

Roland
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

The local names in a path need to be encoded according to ISO 9075.
It is unlikely you file namesare in teh default name space and you need to add the appropriate prefix.

Andy

sbuckle
Champ in-the-making
Champ in-the-making
In version 3.0 there is a method in the JavaScript API that encodes your folder names, query parameters etc correctly. Not sure if this is available in earlier versions.


search.ISO9075Encode(…);