Note that there are some explanatory texts on larger screens.

plurals
  1. POApache Solr: bitwise operations to filter search results
    primarykey
    data
    text
    <p>I need to filter solr search results corresponding the access rights in our cms (drupal 7 + custom access control mechanism based on bitmasks).</p> <p>There exists a Solr QParserPlugin plugin for search results filtering based on bitwise operations on integer fields: <a href="https://issues.apache.org/jira/browse/SOLR-1913" rel="nofollow">https://issues.apache.org/jira/browse/SOLR-1913</a>.</p> <p>I am using Solr 3.6.1 (+ the plugin in /var/lib/tomcat6/solr/lib/bitwise_filter_plugin.jar) on tomcat6 (on debian system) with the <a href="http://drupalcode.org/project/search_api_solr.git/blob/3e6fda7:/solrconfig.xml" rel="nofollow">schema.xml</a> provided by the drupal module search_api_solr and the solrconfig.xml found in the modules issue queue (extended as indicated in the SOLR-1913 issue).</p> <p>The Solr query ...</p> <pre><code>http://solr:8080/solr/select?qf=t_title&amp;fl=*,score&amp;fq={!bitwise field=is_bitmask op=AND source=1234}* </code></pre> <p>... fails with the following message in the error log:</p> <pre><code>Sep 27, 2012 8:57:41 AM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={qf=t_title&amp;fl=*,score&amp;fq={!bitwise+field%3Dis_bitmask+op%3DAND+source%3D1234}} status=500 QTime=15 Sep 27, 2012 8:57:41 AM org.apache.solr.common.SolrException log SEVERE: java.lang.NullPointerException at org.apache.lucene.search.FilteredQuery.hashCode(FilteredQuery.java:268) at java.util.AbstractList.hashCode(AbstractList.java:542) at org.apache.solr.search.QueryResultKey.&lt;init&gt;(QueryResultKey.java:49) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1084) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:375) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:394) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:186) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:636) </code></pre> <p>The only thing I can see in the error message is that the plugin is invoked by solr.</p> <p>Any help would be appreciated, Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload