Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45BEBF5E6 for ; Thu, 9 May 2013 23:09:07 +0000 (UTC) Received: (qmail 80117 invoked by uid 500); 9 May 2013 23:06:08 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 80031 invoked by uid 500); 9 May 2013 23:06:08 -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 79989 invoked by uid 99); 9 May 2013 23:06:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 23:06:08 +0000 Date: Thu, 9 May 2013 23:06:08 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LUCENE-2460) 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 [ https://issues.apache.org/jira/browse/LUCENE-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler updated LUCENE-2460: ---------------------------------- Fix Version/s: (was: 4.3) 4.4 > Search Results Filtering Based on Bitwise Operations on Integer Fields > ---------------------------------------------------------------------- > > Key: LUCENE-2460 > URL: https://issues.apache.org/jira/browse/LUCENE-2460 > Project: Lucene - Core > Issue Type: New Feature > Components: core/search > Reporter: Israel Ekpo > Fix For: 4.4 > > Attachments: LUCENE-2460-bitwise.tar.gz > > Original Estimate: 2h > Remaining Estimate: 2h > > This package makes it possible to filter results returned from a query based on the results of a bitwise operation on an integer field in the documents returned from the pre-constructed query. > You can perform three basic types of operations on these integer fields > * BitwiseOperation.BITWISE_AND (bitwise AND) > * BitwiseOperation.BITWISE_OR (bitwise inclusive OR) > * BitwiseOperation.BITWISE_XOR (bitwise exclusive OR) > You can also negate the results of these operations. > For example, imagine there is an integer field in the index named "flags" with the a value 8 (1000 in binary). The following results will be expected : > 1. A source value of 8 will match during a BitwiseOperation.BITWISE_AND operation, with negate set to false. > 2. A source value of 4 will match during a BitwiseOperation.BITWISE_AND operation, with negate set to true. > The BitwiseFilter constructor accepts the following values > * The name of the integer field (A string) > * The BitwiseOperation object. Example BitwiseOperation.BITWISE_XOR > * The source value (an integer) > * A boolean value indicating whether or not to negate the results of the operation > * A pre-constructed org.apache.lucene.search.Query -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org