solr-node-client
solr-node-client copied to clipboard
Complex RegEx Query not working
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 ..
.