Re: IntField question

2013-04-10 Thread Wei Wang
Thanks for the clarification. Very helpful. On Wed, Apr 10, 2013 at 8:19 AM, Adrien Grand wrote: > Hi, > > On Wed, Apr 10, 2013 at 4:59 PM, Wei Wang wrote: > > Okay. Since there is no ByteField, setByteValue will never by used. It > > seems like a dead function. > > Right, Lucene doesn't have b

Re: IntField question

2013-04-10 Thread Adrien Grand
Hi, On Wed, Apr 10, 2013 at 4:59 PM, Wei Wang wrote: > Okay. Since there is no ByteField, setByteValue will never by used. It > seems like a dead function. Right, Lucene doesn't have byte or short fields. > That makes sense. If we don't need positional info (virtually all terms are > at the sam

Re: IntField question

2013-04-10 Thread Wei Wang
Hi, On Wed, Apr 10, 2013 at 2:45 AM, Adrien Grand wrote: > Hi, > > On Wed, Apr 10, 2013 at 9:34 AM, Wei Wang wrote: > > IntField inherits from Field class a function called setByteValue(). > > However, if we call it, it gives an error message: > > > > java.lang.IllegalArgumentException: cannot

Re: IntField question

2013-04-10 Thread Adrien Grand
Hi, On Wed, Apr 10, 2013 at 9:34 AM, Wei Wang wrote: > IntField inherits from Field class a function called setByteValue(). > However, if we call it, it gives an error message: > > java.lang.IllegalArgumentException: cannot change value type from Integer > to Byte > > 1. If this not allowed for I

IntField question

2013-04-10 Thread Wei Wang
IntField inherits from Field class a function called setByteValue(). However, if we call it, it gives an error message: java.lang.IllegalArgumentException: cannot change value type from Integer to Byte 1. If this not allowed for IntField, and there is no ByteField, how will function setByteValue(