Searched defs:tp (Results 1 - 12 of 12) sorted by relevance

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DPayloadIterator.java38 TermPositions tp; field in class:PayloadIterator
50 this.tp = indexReader.termPositions(term);
59 hasMore = tp.next();
75 if (tp.doc() > docId) {
80 if (tp.doc() < docId) {
82 if (!tp.skipTo(docId)) {
88 if (tp.doc() != docId) {
94 tp.nextPosition();
96 this.payloadLength = tp.getPayloadLength();
106 tp
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DPhrasePositions.java32 TermPositions tp; // stream of positions field in class:PhrasePositions
39 tp = t;
46 if (!tp.next()) {
47 tp.close(); // close stream
51 doc = tp.doc();
57 if (!tp.skipTo(target)) {
58 tp.close(); // close stream
62 doc = tp.doc();
69 count = tp.freq(); // read first pos
81 position = tp
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/function/
H A DTestFieldScoreQuery.java79 private void doTestRank (String field, FieldScoreQuery.Type tp) throws Exception { argument
81 Query q = new FieldScoreQuery(field,tp);
127 private void doTestExactScore (String field, FieldScoreQuery.Type tp) throws Exception { argument
129 Query q = new FieldScoreQuery(field,tp);
173 private void doTestCaching (String field, FieldScoreQuery.Type tp) throws Exception { argument
186 FieldScoreQuery q = new FieldScoreQuery(field,tp);
196 + expectedArrayTypes.get(tp).getClass());
199 innerArray[j].getClass(), expectedArrayTypes.get(tp).getClass());
218 FieldScoreQuery q = new FieldScoreQuery(field,tp);
H A DTestCustomScoreQuery.java231 private void doTestCustomScore(String field, FieldScoreQuery.Type tp, double dboost) throws Exception, ParseException { argument
234 FieldScoreQuery qValSrc = new FieldScoreQuery(field, tp); // a query that would score by the field
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/function/
H A DTestFieldScoreQuery.java79 private void doTestRank (String field, FieldScoreQuery.Type tp) throws Exception { argument
81 Query q = new FieldScoreQuery(field,tp);
127 private void doTestExactScore (String field, FieldScoreQuery.Type tp) throws Exception { argument
129 Query q = new FieldScoreQuery(field,tp);
173 private void doTestCaching (String field, FieldScoreQuery.Type tp) throws Exception { argument
186 FieldScoreQuery q = new FieldScoreQuery(field,tp);
196 + expectedArrayTypes.get(tp).getClass());
199 innerArray[j].getClass(), expectedArrayTypes.get(tp).getClass());
218 FieldScoreQuery q = new FieldScoreQuery(field,tp);
H A DTestCustomScoreQuery.java231 private void doTestCustomScore(String field, FieldScoreQuery.Type tp, double dboost) throws Exception, ParseException { argument
234 FieldScoreQuery qValSrc = new FieldScoreQuery(field, tp); // a query that would score by the field
/lucene-3.6.0/lucene/contrib/pruning/src/java/org/apache/lucene/index/
H A DPruningReader.java253 protected TermPositions tp; field in class:PruningReader.PruningTermPositions
259 tp = in;
275 termPolicy.initPositionsTerm(tp, t);
286 if (termPolicy.pruneAllPositions(tp, curTerm)) {
292 positions = new int[tp.freq()];
294 positions[i] = tp.nextPosition();
296 int pruned = termPolicy.pruneSomePositions(tp.doc(), positions, curTerm);
/lucene-3.6.0/lucene/contrib/pruning/src/java/org/apache/lucene/index/pruning/
H A DCarmelUniformTermPruningPolicy.java116 public void initPositionsTerm(TermPositions tp, Term t) throws IOException { argument
H A DRIDFTermPruningPolicy.java68 public void initPositionsTerm(TermPositions tp, Term t) throws IOException { argument
74 while (tp.next()) {
75 totalFreq += tp.freq();
78 tp.seek(t);
H A DCarmelTopKTermPruningPolicy.java148 public void initPositionsTerm(TermPositions tp, Term t) throws IOException { argument
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestMultiLevelSkipList.java64 SegmentTermPositions tp = (SegmentTermPositions) reader.termPositions();
65 tp.freqStream = new CountingStream(tp.freqStream);
69 tp.seek(term);
71 checkSkipTo(tp, 14, 185); // no skips
72 checkSkipTo(tp, 17, 190); // one skip on level 0
73 checkSkipTo(tp, 287, 200); // one skip on level 1, two on level 0
77 checkSkipTo(tp, 4800, 250);// one skip on level 2
81 public void checkSkipTo(TermPositions tp, int target, int maxCounter) throws IOException { argument
82 tp
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestMultiLevelSkipList.java64 SegmentTermPositions tp = (SegmentTermPositions) reader.termPositions();
65 tp.freqStream = new CountingStream(tp.freqStream);
69 tp.seek(term);
71 checkSkipTo(tp, 14, 185); // no skips
72 checkSkipTo(tp, 17, 190); // one skip on level 0
73 checkSkipTo(tp, 287, 200); // one skip on level 1, two on level 0
77 checkSkipTo(tp, 4800, 250);// one skip on level 2
81 public void checkSkipTo(TermPositions tp, int target, int maxCounter) throws IOException { argument
82 tp
[all...]

Completed in 331 milliseconds