Re: Testing for field existence

2008-08-18 Thread Daniel Noll
Karsten F. wrote: Hi Bill, you should not use prefix-query (*), because in first step lucene would generate a list of all terms in this field, and than search for all this terms. Which is senceless. That's not quite an accurate description of what it does as it nowhere near as slow as doi

RE: Testing for field existence

2008-08-18 Thread Steven A Rowe
Hi Bill, A simpler suggestion, assuming you need to test for the existence of just one particular field: rather than adding a field containing a list of all indexed fields for a particular document, as Karsten suggested, you could just add a field with a constant value when the field you want t

Re: Testing for field existence

2008-08-18 Thread Erick Erickson
#x27;ll give it a try. > Thanks for the help. > > regards, > > Bill > > > -Original Message- > From: Karsten F. [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2008 11:45 AM > To: java-user@lucene.apache.org > Subject: Re: Testing for field existence &

RE: Testing for field existence

2008-08-18 Thread Bill.Chesky
ssage- From: Karsten F. [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 11:45 AM To: java-user@lucene.apache.org Subject: Re: Testing for field existence Hi Bill, you should not use prefix-query (*), because in first step lucene would generate a list of all terms in this field, and

Re: Testing for field existence

2008-08-18 Thread Karsten F.
Hi Bill, you should not use prefix-query (*), because in first step lucene would generate a list of all terms in this field, and than search for all this terms. Which is senceless. I would suggest to insert a new field "myFields" which contains as value the names of all fields for this docum