solr-node-client icon indicating copy to clipboard operation
solr-node-client copied to clipboard

Complex RegEx Query not working

Open niravpatel2008 opened this issue 8 years ago • 0 comments

I have application in php using solarium lib i am able to query like below but now i am moving to node.js and i using this client library but i could not able to query like below.

fq=TAGS:fq=TAGS:(((/.*Nurses? ?([-\/:'\|\\ ]).*/ OR \"Nurses\")))

is there any way to execute this type of complete query ?

it seems there is issue in uri encoding as solr server gives error like:

{"responseHeader":{"status":500,"QTime":2},"error":{"msg":"expected ']' at position 14","trace":"java.lang.IllegalArgumentException: expected ']' at position 14\n\tat org.apache.lucene.util.automaton.RegExp.parseCharClassExp(RegExp.java:926)\n\tat org.apache.lucene.util.automaton.RegExp.parseComplExp(RegExp.java:917)\n\tat ..

.

niravpatel2008 avatar Mar 08 '16 06:03 niravpatel2008