Tabnine Logo
PhraseQueue.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.lucene.search.PhraseQueue
constructor

Best Java code snippets using org.apache.lucene.search.PhraseQueue.<init> (Showing top 7 results out of 315)

origin: org.apache.lucene/lucene-core

SloppyPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, int slop, float matchCost, boolean captureLeadMatch) {
 super(approximation(postings), matchCost);
 this.slop = slop;
 this.numPostings = postings.length;
 this.captureLeadMatch = captureLeadMatch;
 pq = new PhraseQueue(postings.length);
 phrasePositions = new PhrasePositions[postings.length];
 for (int i = 0; i < postings.length; ++i) {
  phrasePositions[i] = new PhrasePositions(postings[i].postings, postings[i].position, i, postings[i].terms);
 }
}
origin: harbby/presto-connectors

SloppyPhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings,
  int slop, Similarity.SimScorer docScorer, boolean needsScores,
  float matchCost) {
 super(weight);
 this.docScorer = docScorer;
 this.needsScores = needsScores;
 this.slop = slop;
 this.numPostings = postings==null ? 0 : postings.length;
 pq = new PhraseQueue(postings.length);
 DocIdSetIterator[] iterators = new DocIdSetIterator[postings.length];
 phrasePositions = new PhrasePositions[postings.length];
 for (int i = 0; i < postings.length; ++i) {
  iterators[i] = postings[i].postings;
  phrasePositions[i] = new PhrasePositions(postings[i].postings, postings[i].position, i, postings[i].terms);
 }
 conjunction = ConjunctionDISI.intersectIterators(Arrays.asList(iterators));
 this.matchCost = matchCost;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

SloppyPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, int slop, float matchCost, boolean captureLeadMatch) {
 super(approximation(postings), matchCost);
 this.slop = slop;
 this.numPostings = postings.length;
 this.captureLeadMatch = captureLeadMatch;
 pq = new PhraseQueue(postings.length);
 phrasePositions = new PhrasePositions[postings.length];
 for (int i = 0; i < postings.length; ++i) {
  phrasePositions[i] = new PhrasePositions(postings[i].postings, postings[i].position, i, postings[i].terms);
 }
}
origin: org.infinispan/infinispan-embedded-query

SloppyPhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings,
  int slop, Similarity.SimScorer docScorer, boolean needsScores,
  float matchCost) {
 super(weight);
 this.docScorer = docScorer;
 this.needsScores = needsScores;
 this.slop = slop;
 this.numPostings = postings==null ? 0 : postings.length;
 pq = new PhraseQueue(postings.length);
 DocIdSetIterator[] iterators = new DocIdSetIterator[postings.length];
 phrasePositions = new PhrasePositions[postings.length];
 for (int i = 0; i < postings.length; ++i) {
  iterators[i] = postings[i].postings;
  phrasePositions[i] = new PhrasePositions(postings[i].postings, postings[i].position, i, postings[i].terms);
 }
 conjunction = ConjunctionDISI.intersectIterators(Arrays.asList(iterators));
 this.matchCost = matchCost;
}
origin: lucene/lucene

PhraseScorer(Weight weight, TermPositions[] tps, int[] positions, Similarity similarity,
       byte[] norms) {
 super(similarity);
 this.norms = norms;
 this.weight = weight;
 this.value = weight.getValue();
 // convert tps to a list
 for (int i = 0; i < tps.length; i++) {
  PhrasePositions pp = new PhrasePositions(tps[i], positions[i]);
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
 }
 pq = new PhraseQueue(tps.length);             // construct empty pq
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

PhraseScorer(Weight weight, TermPositions[] tps, int[] offsets, Similarity similarity,
       byte[] norms) {
 super(similarity);
 this.norms = norms;
 this.weight = weight;
 this.value = weight.getValue();
 // convert tps to a list of phrase positions.
 // note: phrase-position differs from term-position in that its position
 // reflects the phrase offset: pp.pos = tp.pos - offset.
 // this allows to easily identify a matching (exact) phrase 
 // when all PhrasePositions have exactly the same position.
 for (int i = 0; i < tps.length; i++) {
  PhrasePositions pp = new PhrasePositions(tps[i], offsets[i]);
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
 }
 pq = new PhraseQueue(tps.length);             // construct empty pq
}
origin: org.apache.lucene/lucene-core-jfrog

PhraseScorer(Weight weight, TermPositions[] tps, int[] offsets, Similarity similarity,
       byte[] norms) {
 super(similarity);
 this.norms = norms;
 this.weight = weight;
 this.value = weight.getValue();
 // convert tps to a list of phrase positions.
 // note: phrase-position differs from term-position in that its position
 // reflects the phrase offset: pp.pos = tp.pos - offset.
 // this allows to easily identify a matching (exact) phrase 
 // when all PhrasePositions have exactly the same position.
 for (int i = 0; i < tps.length; i++) {
  PhrasePositions pp = new PhrasePositions(tps[i], offsets[i]);
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
 }
 pq = new PhraseQueue(tps.length);             // construct empty pq
}
org.apache.lucene.searchPhraseQueue<init>

Popular methods of PhraseQueue

  • clear
  • pop
  • top
  • add
  • initialize
  • put
  • insert
  • size

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • 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