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

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

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

origin: lucene/lucene

public boolean skipTo(int target) throws IOException {
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) {
  more = pp.skipTo(target);
 }
 if (more)
  sort();                                     // re-sort
 return doNext();
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

public boolean skipTo(int target) throws IOException {
 firstTime = false;
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) {
  more = pp.skipTo(target);
 }
 if (more)
  sort();                                     // re-sort
 return doNext();
}
origin: org.apache.lucene/lucene-core-jfrog

public boolean skipTo(int target) throws IOException {
 firstTime = false;
 for (PhrasePositions pp = first; more && pp != null; pp = pp.next) {
  more = pp.skipTo(target);
 }
 if (more)
  sort();                                     // re-sort
 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.searchPhrasePositionsskipTo

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
  • next

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JComboBox (javax.swing)
  • From CI to AI: The AI layer in your organization
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