Re: Custom Solr Query Post Filter

2014-10-08 Thread Joel Bernstein
Also just took a quick look at the code. This will likely be a performance problem if you have a large result set: String classif = context.reader().document(docId).get("classification"); Instead of using the stored field, you'll want to get the BytesRef for the field using either the FieldCache

Re: Custom Solr Query Post Filter

2014-10-08 Thread Christopher Gross
That did the trick! Thanks Joel. -- Chris On Wed, Oct 8, 2014 at 2:05 PM, Joel Bernstein wrote: > The results are being cached in the QueryResultCache most likely. You need > to implement equals() and hashCode() on the query object, which is part of > the cache key. In your case the creds para

Re: Custom Solr Query Post Filter

2014-10-08 Thread Joel Bernstein
The results are being cached in the QueryResultCache most likely. You need to implement equals() and hashCode() on the query object, which is part of the cache key. In your case the creds param must be included in the hashCode and equals logic. Joel Bernstein Search Engineer at Heliosearch On Wed

Custom Solr Query Post Filter

2014-10-08 Thread Christopher Gross
Code: http://pastebin.com/tNjzDbmy Solr 4.9.0 Tomcat 7 Java 7 I took Erik Hatcher's example for creating a PostFilter and have modified it so it would work with Solr 4.x. Right now it works...the first time. If I were to run this query it would work right: http://localhost:8080/solr/plugintest/s