RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
Ah, the old "switch that you shouldn't throw" trick. ;-) Karl -Original Message- From: ext Michael McCandless [mailto:luc...@mikemccandless.com] Sent: Wednesday, August 18, 2010 2:39 PM To: dev@lucene.apache.org Subject: Re: Question about string retrieval with FieldCac

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Michael McCandless
t: Wednesday, August 18, 2010 2:28 PM > To: dev@lucene.apache.org > Subject: Re: Question about string retrieval with FieldCache in trunk > > Odd... the field is definitely indexed?  If you try getTermsIndex are > they still empty? > > Are you just calling .utf8ToString() to g

RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
: dev@lucene.apache.org Subject: Re: Question about string retrieval with FieldCache in trunk Odd... the field is definitely indexed? If you try getTermsIndex are they still empty? Are you just calling .utf8ToString() to get the String from the BytesRef? Mike On Wed, Aug 18, 2010 at 1:18 PM

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Michael McCandless
erm(int docID, BytesRef ret); >>> >>> How in the blazes do you create the correct BytesRef in the first place?   >>> Or is the comment wrong? >>> >>> Karl >>> >>> >>> -Original Message- >>> From: ysee...@gmail.com [m

RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
om] Sent: Wednesday, August 18, 2010 12:43 PM To: dev@lucene.apache.org Subject: Re: Question about string retrieval with FieldCache in trunk Also note that the MIGRATE.txt in the lucene subdir should cover this. Mike Sent from my iPad On Aug 18, 2010, at 11:26 AM, Jason Rutherglen wrote: &g

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Michael McCandless
riginal Message- >> From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of ext Yonik >> Seeley >> Sent: Wednesday, August 18, 2010 10:55 AM >> To: dev@lucene.apache.org >> Subject: Re: Question about string retrieval with FieldCache in trunk >> >>

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Yonik Seeley
On Wed, Aug 18, 2010 at 12:03 PM, Yonik Seeley wrote: > On Wed, Aug 18, 2010 at 11:28 AM,   wrote: >> If you are correct, the comment is certainly incorrect, since it implies >> that the SAME BytesRef is returned as you pass in. > > Yes, that's correct.  BytesRef is mutable.  You pass in an insta

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Yonik Seeley
On Wed, Aug 18, 2010 at 11:28 AM, wrote: > If you are correct, the comment is certainly incorrect, since it implies that > the SAME BytesRef is returned as you pass in. Yes, that's correct. BytesRef is mutable. You pass in an instance, and the value is set and the same BytesRef is normally re

RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
To: 'dev@lucene.apache.org' Subject: RE: Question about string retrieval with FieldCache in trunk If you are correct, the comment is certainly incorrect, since it implies that the SAME BytesRef is returned as you pass in. Karl -Original Message- From: ext Jason

RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
...@lucidimagination.com Subject: Re: Question about string retrieval with FieldCache in trunk Karl, I believe one may pass an empty BytesRef in, and the values will be set within the getTerm method. On Wed, Aug 18, 2010 at 8:18 AM, wrote: > Exactly. getTerms() returns a DocTerms, which has t

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Jason Rutherglen
is the comment wrong? > > Karl > > > -Original Message- > From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of ext Yonik > Seeley > Sent: Wednesday, August 18, 2010 10:55 AM > To: dev@lucene.apache.org > Subject: Re: Question about string retrieval with

RE: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread karl.wright
@lucene.apache.org Subject: Re: Question about string retrieval with FieldCache in trunk Check out getTerms and getTermsIndex -Yonik http://www.lucidimagination.com On Wed, Aug 18, 2010 at 10:49 AM, wrote: > Hi folks, > > What is the proper way to retrieve a string field from lucene in tr

Re: Question about string retrieval with FieldCache in trunk

2010-08-18 Thread Yonik Seeley
Check out getTerms and getTermsIndex -Yonik http://www.lucidimagination.com On Wed, Aug 18, 2010 at 10:49 AM, wrote: > Hi folks, > > What is the proper way to retrieve a string field from lucene in trunk?  I’m > specifically looking for the equivalent of: > > String[] fieldValues = FieldCache.D