lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shimon Shrem (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/SOLR-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964885#action_12964885
] 

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(NumericUtils.java:253)
	at org.apache.lucene.search.FieldCache$7.parseInt(FieldCache.java:264)
	at org.apache.lucene.search.FieldCacheImpl$IntCache.createValue(FieldCacheImpl.java:407)
	at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:185)
	at org.apache.lucene.search.FieldCacheImpl.getInts(FieldCacheImpl.java:373)
	at org.apache.lucene.bitwise.BitwiseDatasetFactory.buildDataSet(BitwiseDatasetFactory.java:47)
	at org.apache.lucene.bitwise.BitwiseFilterResult.getBitSet(BitwiseFilterResult.java:81)
	at org.apache.lucene.bitwise.BitwiseFilter.getDocIdSet(BitwiseFilter.java:104)
	at org.apache.lucene.search.FilteredQuery$1.scorer(FilteredQuery.java:120)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:208)
	at org.apache.lucene.search.Searcher.search(Searcher.java:88)
	at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1099)
	at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:995)
	at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:345)
	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:179)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1321)
	at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

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


> QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer
Fields
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1913
>                 URL: https://issues.apache.org/jira/browse/SOLR-1913
>             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 org.apache.solr.search.QParserPlugin 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 https://issues.apache.org/jira/browse/LUCENE-2460 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message