Larry Taylor wrote:
What we need to do is to be able to store a bit mask specifying various
filter flags for a document in the index and then search this field by
specifying another bit mask with desired filters, returning documents
that have any of the specified flags set. In other words, we are doing a
bitwise OR on the stored filter bit mask and the specified filter bit
mask and if it is non-zero, we want to return the document.
We did this by naming the flags and storing them in a single field. So if we have three flags called, oh, alice, bob and clive and we wanted to indicate alice and clive were set and bob clear then we store "alice", "unbob" and "clive" in the "flags" field.

That seems to be quite efficient -- I can now search for any combination of flags (or bits) set or unset and I can add new flags at will.

jch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to