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

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • Menu (java.awt)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 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