cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Problem

peodrom
Champ in-the-making
Champ in-the-making
can some one help me to find the problem in this Lucene???

   var repertorioExists = search.query({
      language: "lucene",
      query: "@indi\\:numeroRepertorio:'"+repertorio+"' AND @cm\\:created:["+current_year+"\\-01\\-01T00:00:00 TO "+current_year+"\\-12\\-31T23:59:59] AND PATH:\"/app:company_home/st:sites/cm:"+nome_sito_protocollo+"//*\"";
   }).length > 0;

i receive in log error messages: " } missing"

I think that there is a problem in PATH:\……

thanks in advance
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

the problem is likely related to a superflous ; in your code. You have added a ; after the query value just before the }. This leads to invalid code and the parser will very likely report it the way it does in your case. So remove that ; and you should be fine.

Regards
Axel