lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shimon Shrem (JIRA)" <>
Subject [jira] Commented: (SOLR-1913) QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer Fields
Date Mon, 29 Nov 2010 19:15:13 GMT


Shimon Shrem commented on SOLR-1913:

Hi Israel,
I recently added your plugin to our search.
I followed your instructions, however I get an exception,

Invalid shift value in prefixCoded bytes (is encoded value really an INT?)

java.lang.NumberFormatException: Invalid shift value in prefixCoded bytes (is encoded value
really an INT?)
	at org.apache.lucene.util.NumericUtils.getPrefixCodedIntShift(
	at org.apache.lucene.bitwise.BitwiseDatasetFactory.buildDataSet(
	at org.apache.lucene.bitwise.BitwiseFilterResult.getBitSet(
	at org.apache.lucene.bitwise.BitwiseFilter.getDocIdSet(
	at org.apache.solr.handler.component.QueryComponent.process(
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(
	at org.apache.solr.core.SolrCore.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.execute(
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.mortbay.jetty.servlet.ServletHandler.handle(
	at org.mortbay.jetty.servlet.SessionHandler.handle(
	at org.mortbay.jetty.handler.ContextHandler.handle(
	at org.mortbay.jetty.webapp.WebAppContext.handle(
	at org.mortbay.jetty.handler.HandlerWrapper.handle(
	at org.mortbay.jetty.Server.handle(
	at org.mortbay.jetty.HttpConnection.handleRequest(
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
	at org.mortbay.jetty.HttpParser.parseNext(
	at org.mortbay.jetty.HttpParser.parseAvailable(
	at org.mortbay.jetty.HttpConnection.handle(
	at org.mortbay.thread.BoundedThreadPool$

Can you please advice what should I do to make it work.

> QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer
> -----------------------------------------------------------------------------------------------
>                 Key: SOLR-1913
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Israel Ekpo
>             Fix For: Next
>         Attachments: bitwise_filter_plugin.jar, SOLR-1913.bitwise.tar.gz
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> BitwiseQueryParserPlugin is a that allows 
> users to filter the documents returned from a query
> by performing bitwise operations between a particular integer field in the index
> and the specified value.
> This Solr plugin is based on the BitwiseFilter in LUCENE-2460
> See for more details
> This is the syntax for searching in Solr:
> http://localhost:8983/path/to/solr/select/?q={!bitwise field=fieldname op=OPERATION_NAME
source=sourcevalue negate=boolean}remainder of query
> Example :
> http://localhost:8983/solr/bitwise/select/?q={!bitwise field=user_permissions op=AND
source=3 negate=true}state:FL
> The negate parameter is optional
> The field parameter is the name of the integer field
> The op parameter is the name of the operation; one of {AND, OR, XOR}
> The source parameter is the specified integer value
> The negate parameter is a boolean indicating whether or not to negate the results of
the bitwise operation
> To test out this plugin, simply copy the jar file containing the plugin classes into
your $SOLR_HOME/lib directory and then
> add the following to your solrconfig.xml file after the dismax request handler:
> <queryParser name="bitwise" class="org.apache.solr.bitwise.BitwiseQueryParserPlugin"
basedOn="dismax" />
> Restart your servlet container.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message