Re: Searching by bit masks

2006-11-28 Thread Erick Erickson
e snippet from, something like >> >> Document doc = new Document. >> >> if (bitsfromdb & 1) { >> >>doc.add("sport", "y"); >> >> } >> >> if (bitsfromdb & 2) { >> >>doc.add("music",

Re: Searching by bit masks

2006-11-28 Thread Biggy
t;); >> >> } >> > >> > Beware that if there are a large number of bits, this is going to >> impact >> > memory usage due to there being more fields. >> > >> > Perhaps a better way would be to use a single "bits" field and st

Re: Searching by bit masks

2006-11-28 Thread Erick Erickson
; This message is intended only for the named recipient. If you are not > the intended recipient you are notified that disclosing, copying, > distributing or taking any action in reliance on the contents of this > message or attachment is strictly prohibited. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Searching-by-bit-masks-tf2603918.html#a7576286 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Searching by bit masks

2006-11-28 Thread Biggy
ended only for the named recipient. If you are not > the intended recipient you are notified that disclosing, copying, > distributing or taking any action in reliance on the contents of this > message or attachment is strictly prohibited. > > ---

Re: Searching by bit masks

2006-11-27 Thread Daniel Noll
Erick Erickson wrote: Well, you really have the code already . From the top... 1> there's no good way to support searching bitfields If you wanted, you could probably store it as a small integer and then search on it, but that's waaay too complicated than you want. 2> Add the fields like you

Re: Searching by bit masks

2006-11-27 Thread Erick Erickson
s > with any combination of the flags being valid. The number of flags is > expected to increase rather rapidly in the near future. > > My preemptive thanks for your suggestions, > > > Lawrence Taylor > Senior Software Engineer > Employon > Message was edited by: ltaylo

Re: Searching by bit masks

2006-11-27 Thread Biggy
ence Taylor > Senior Software Engineer > Employon > Message was edited by: ltaylor.employon > > > -- View this message in context: http://www.nabble.com/Searching-by-bit-masks-tf2603918.html#a7564237 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Searching by bit masks

2006-11-10 Thread Larry Taylor
To: java-user@lucene.apache.org Subject: Re: Searching by bit masks Erick Erickson wrote: > Something like > Document doc = new Document(); > doc.add("flag1", "Y"); > doc.add("flag2", "Y"); > IndexWriter.add(doc); Fields have overheads. It

Re: Searching by bit masks

2006-11-10 Thread Doug Cutting
Erick Erickson wrote: Something like Document doc = new Document(); doc.add("flag1", "Y"); doc.add("flag2", "Y"); IndexWriter.add(doc); Fields have overheads. It would be more efficient to implement this as a single field with a different value for each boolean flag (as others have suggested

Re: Searching by bit masks

2006-11-10 Thread John Haxby
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

Re: Searching by bit masks

2006-11-09 Thread Erick Erickson
Let me see if I have a clue what you're trying to do. Warning: I'm a bit confused since "filter" has a very specific meaning in Lucene, so when you talk about filters I'm assuming that you're NOT talking about Lucene filters, but rather just a set of flags you're associating with each document, an

Searching by bit masks

2006-11-09 Thread Larry Taylor
Hello, I am currently evaluating Lucene to see if it would be appropriate to replace my company's current search software. So far everything has been looking great, however there is one requirement that I am not too certain about. What we need to do is to be able to store a bit mask specifying