I am currently running a Solr client/server pair which is working fine.
However, in some cases the filter query (fq parameter) which is sent to Solr is quite large (can be thousands of characters) and can not be trimmed down. As the query parsing takes only a fraction of the overall time, I want to experiment with zipping this query part and sending it to Solr.
I was thinking of modifying the client so instead of fq it uses another parameter (e.g. zfq). Solr can then decide – if it receives zfq, it uses it and decodes the data into fq. Otherwise it should behave as usual.
What is the standard way to achieve the above? Looks like there is SearchHandler, requestHandler, <queryParser (both in solrconfig.xml) and many others and I’m not quite sure what’s least intrusive. I’m fairly confident with Lucene/Tomcat but don’t know much about Solr data structures.
Have you thought about using this syntax -category:(1 2 3 4 … N). That should reduce the string by 90%. Better than zipping.