Searched defs:pq (Results 1 - 9 of 9) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DTopDocsCollector.java46 protected PriorityQueue<T> pq; field in class:TopDocsCollector
51 protected TopDocsCollector(PriorityQueue<T> pq) { argument
52 this.pq = pq;
61 results[i] = pq.pop();
82 // In case pq was populated with sentinel values, there might be less
83 // results than pq.size(). Therefore return all results until either
84 // pq.size() or totalHits.
85 return totalHits < pq.size() ? totalHits : pq
[all...]
H A DSloppyPhraseScorer.java35 private final PhraseQueue pq; // for advancing min position field in class:SloppyPhraseScorer
50 pq = new PhraseQueue(postings.length);
77 PhrasePositions pp = pq.pop();
79 int next = pq.top().position;
88 pq.add(pp);
89 pp = pq.pop();
90 next = pq.top().position;
140 PhrasePositions pp2 = pq.pop();
148 pq.add(rptStack[i]);
205 pq
[all...]
H A DTopFieldCollector.java62 bottom = pq.updateTop();
168 bottom = pq.updateTop();
284 bottom = pq.updateTop();
395 bottom = pq.updateTop();
549 bottom = pq.updateTop();
699 bottom = pq.updateTop();
862 private TopFieldCollector(PriorityQueue<Entry> pq, int numHits, boolean fillFields) { argument
863 super(pq);
958 bottom = pq.add(new Entry(slot, docBase + doc, score));
971 FieldValueHitQueue<Entry> queue = (FieldValueHitQueue<Entry>) pq;
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DTopKFacetResultsHandler.java119 * they join the overall priority queue pq of size K.
120 * @return total number of descendants considered here by pq, excluding ordinal itself.
122 private int heapDescendants(int ordinal, Heap<FacetResultNode> pq, argument
181 reusable = pq.insertWithOverflow(reusable);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestSloppyPhraseQuery.java179 private void assertSaneScoring(PhraseQuery pq, IndexSearcher searcher) throws Exception { argument
180 searcher.search(pq, new Collector() {
205 QueryUtils.check(random, pq, searcher);
227 PhraseQuery pq = new PhraseQuery();
229 pq.add(new Term("lyrics", "drug"), 1);
230 pq.add(new Term("lyrics", "drug"), 4);
231 pq.setSlop(0);
232 assertEquals(0, is.search(pq, 4).totalHits);
233 pq.setSlop(1);
234 assertEquals(3, is.search(pq,
[all...]
H A DJustCompileSearch.java424 protected JustCompileTopDocsCollector(PriorityQueue<ScoreDoc> pq) { argument
425 super(pq);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestSloppyPhraseQuery.java179 private void assertSaneScoring(PhraseQuery pq, IndexSearcher searcher) throws Exception { argument
180 searcher.search(pq, new Collector() {
205 QueryUtils.check(random, pq, searcher);
227 PhraseQuery pq = new PhraseQuery();
229 pq.add(new Term("lyrics", "drug"), 1);
230 pq.add(new Term("lyrics", "drug"), 4);
231 pq.setSlop(0);
232 assertEquals(0, is.search(pq, 4).totalHits);
233 pq.setSlop(1);
234 assertEquals(3, is.search(pq,
[all...]
H A DJustCompileSearch.java424 protected JustCompileTopDocsCollector(PriorityQueue<ScoreDoc> pq) { argument
425 super(pq);
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/
H A DAbstractTestCase.java135 return pq( boost, slop, F, texts );
138 protected Query pq( String field, String... texts ){ method in class:AbstractTestCase
139 return pq( 1F, 0, field, texts );
142 protected Query pq( float boost, String field, String... texts ){ method in class:AbstractTestCase
143 return pq( boost, 0, field, texts );
146 protected Query pq( float boost, int slop, String field, String... texts ){ method in class:AbstractTestCase

Completed in 60 milliseconds