We have a need to query and fetch millions of document ids from a Solr 3.3 index and convert the same to a BitSet. To speed things up, we want to convert these document ids into OpenBitSet on the server side, put them into the response object and read the same on the client side.
To achieve this, we wrote our own RequestHandler and overwrote the handleRequest method. Using this RequestHandler we do get the response object but when we try to fetch the OpenBitSet we get an error - Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.lucene.util.OpenBitSet The documentation at - http://lucene.apache.org/solr/api/org/apache/solr/response/SolrQueryResponse.html says that "Other data types may be added to the SolrQueryResponse, but there is no guarantee that QueryResponseWriters will be able to deal with unexpected types." Is there a work-around wherein I can send an OpenBitSet object? Satish