Tabnine Logo
PhrasePositions.next
Code IndexAdd Tabnine to your IDE (free)

How to use
next
method
in
org.apache.lucene.search.PhrasePositions

Best Java code snippets using org.apache.lucene.search.PhrasePositions.next (Showing top 9 results out of 315)

origin: org.apache.lucene/lucene-core-jfrog

private void init() throws IOException {
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) 
  more = pp.next();
 if(more)
  sort();
}

origin: lucene/lucene

private void init() throws IOException {
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) 
  more = pp.next();
 if(more)
  sort();
}

origin: org.apache.lucene/com.springsource.org.apache.lucene

private void init() throws IOException {
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) 
  more = pp.next();
 if(more)
  sort();
}

origin: lucene/lucene

public boolean next() throws IOException {
 if (firstTime) {
  init();
  firstTime = false;
 } else if (more) {
  more = last.next();                         // trigger further scanning
 }
 return doNext();
}

origin: org.apache.lucene/com.springsource.org.apache.lucene

public boolean next() throws IOException {
 if (firstTime) {
  init();
  firstTime = false;
 } else if (more) {
  more = last.next();                         // trigger further scanning
 }
 return doNext();
}

origin: org.apache.lucene/lucene-core-jfrog

public boolean next() throws IOException {
 if (firstTime) {
  init();
  firstTime = false;
 } else if (more) {
  more = last.next();                         // trigger further scanning
 }
 return doNext();
}

origin: org.apache.lucene/lucene-core-jfrog

private boolean doNext() throws IOException {
 while (more) {
  while (more && first.doc < last.doc) {      // find doc w/ all the terms
   more = first.skipTo(last.doc);            // skip first upto last
   firstToLast();                            // and move it to the end
  }
  if (more) {
   // found a doc with all of the terms
   freq = phraseFreq();                      // check for phrase
   if (freq == 0.0f)                         // no match
    more = last.next();                     // trigger further scanning
   else
    return true;                            // found a match
  }
 }
 return false;                                 // no more matches
}
origin: lucene/lucene

private boolean doNext() throws IOException {
 while (more) {
  while (more && first.doc < last.doc) {      // find doc w/ all the terms
   more = first.skipTo(last.doc);            // skip first upto last
   firstToLast();                            // and move it to the end
  }
  if (more) {
   // found a doc with all of the terms
   freq = phraseFreq();                      // check for phrase
   if (freq == 0.0f)                         // no match
    more = last.next();                     // trigger further scanning
   else
    return true;                            // found a match
  }
 }
 return false;                                 // no more matches
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

private boolean doNext() throws IOException {
 while (more) {
  while (more && first.doc < last.doc) {      // find doc w/ all the terms
   more = first.skipTo(last.doc);            // skip first upto last
   firstToLast();                            // and move it to the end
  }
  if (more) {
   // found a doc with all of the terms
   freq = phraseFreq();                      // check for phrase
   if (freq == 0.0f)                         // no match
    more = last.next();                     // trigger further scanning
   else
    return true;                            // found a match
  }
 }
 return false;                                 // no more matches
}
org.apache.lucene.searchPhrasePositionsnext

Javadoc

Go to next location of this term current document, and set position as location - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the same position.

Popular methods of PhrasePositions

  • <init>
  • firstPosition
  • nextPosition
    Go to next location of this term current document, and setposition as location - offset, so that a m
  • skipTo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now