Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 87385 invoked from network); 6 Dec 2010 05:02:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 05:02:38 -0000 Received: (qmail 33801 invoked by uid 500); 6 Dec 2010 05:02:36 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 33634 invoked by uid 500); 6 Dec 2010 05:02:35 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 33621 invoked by uid 99); 6 Dec 2010 05:02:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 05:02:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 05:02:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB652BLQ015399 for ; Mon, 6 Dec 2010 05:02:11 GMT Message-ID: <27084695.122791291611731044.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 00:02:11 -0500 (EST) From: "Israel Ekpo (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1913) QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer Fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12967085#action_12967085 ] Israel Ekpo commented on SOLR-1913: ----------------------------------- I am glad it worked out for you. I was going to ask you the same question (show me a sample of your schema) This plugin only works on fields that use an integer data type and not on any field, even if that field contains only numeric values. > 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: > > 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