Codota Logo
PhrasePositions.skipTo
Code IndexAdd Codota 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)

  • Common ways to obtain PhrasePositions
private void myMethod () {
PhrasePositions p =
  • Codota IconPhraseQueue phraseQueue;phraseQueue.pop()
  • Codota IconPhraseQueue phraseQueue;(PhrasePositions) phraseQueue.pop()
  • Codota IconPostingsEnum postings;Term[] terms;new PhrasePositions(postings, o, ord, terms)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now