query for non-existence of fields

2011-10-05 Thread Sam Jiang
"fieldName", "*")), Occur.MUST_NOT)); but then I realized the javadoc says it's impossible to query with a mere MUST_NOT clause A workaround I can think of is to add stub fields of name "", but this increases the size of the index =/ any suggestions are welcome t

Re: searching / sorting on timestamp and update efficiency

2011-09-22 Thread Sam Jiang
xReader.reopen() you should close the original > IndexReader if it is still open to avoid memory leaks. > > Jason > > -Original Message- > From: Sam Jiang [mailto:sam.ji...@karoshealth.com] > Sent: Thursday, September 22, 2011 10:18 AM > To: java-user@lucene.apache

searching / sorting on timestamp and update efficiency

2011-09-22 Thread Sam Jiang
field or any other fields are rare. It would be great if somebody can advice me which format should I use. p.s. should I be calling optimize() often given my frequent updates? thanks -- Sam Jiang | karoshealth (っ゚Д゚;)っ hidden cat here 7 Father David Bauer Drive, Suite 201 Waterloo, ON, N2L 0A2