lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben West <bwsithspaw...@yahoo.com>
Subject Re: [Fwd: TermEnum usage]
Date Thu, 22 Jul 2010 15:40:04 GMT
Hey Vincent,

I am not a dev, but for example look at FuzzyQuery.cs (starting at line 148):

do 
{
  float score = 0.0f;
  Term t = enumerator.Term();
  if (t != null) 
  {
    // some stuff with t
  }
}
while (enumerator.Next());

you can see that it is expecting the enumerator to have a term in it before it calls next
[i.e. it is using do...while rather than just while]. So I think this is expected behavior,
although it may not be intuitive.

Hope this helps,
-Ben

--- On Thu, 7/22/10, Vincent DARON <vdaron@ask.be> wrote:

> From: Vincent DARON <vdaron@ask.be>
> Subject: [Fwd: TermEnum usage]
> To: "lucene-net-dev" <lucene-net-dev@lucene.apache.org>
> Date: Thursday, July 22, 2010, 10:10 AM
> Without any answers, I'm reposting
> once. Do I have to post bug report ?
> 
> Let me know
> 
> Thanks a lot
> 
> Vincent DARON
> ASK
> 


      

Mime
View raw message