Open asfimport opened 14 years ago
Israel Ekpo (migrated from JIRA)
Attaching the package containing the BitwiseFilter class
Steven Rowe (@sarowe) (migrated from JIRA)
Bulk move 4.4 issues to 4.5 and 5.0
Uwe Schindler (@uschindler) (migrated from JIRA)
Move issue to Lucene 4.9.
It would be nice to have this feature supported.
@NavidMitchell I'm not sure if there's a more convenient way to do this, but note that you can do this using Expressions
compiled from JavascriptCompiler
since the compiler supports bitwise operations. You can create a custom Query
implementation on top of a DoubleValuesSource
created form the expression that runs bitwise operations against a numeric doc values field. (I haven't looked the patch associated with this issue since it's pretty old at this point, but just wanted to let you know that I think what this issue describes is actually possible)
Thank you
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
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 :
The BitwiseFilter constructor accepts the following values
Migrated from LUCENE-2460 by Israel Ekpo, 3 votes, updated May 09 2016 Attachments: LUCENE-2460-bitwise.tar.gz