Examples of term()


Examples of org.apache.lucene.index.TermEnum.term()

      aprioriTermDocsSeeker.close();
      testTermDocsSeeker.close();

      // compare documents per term

      assertEquals(aprioriReader.docFreq(aprioriTermEnum.term()), testReader.docFreq(testTermEnum.term()));

      TermDocs aprioriTermDocs = aprioriReader.termDocs(aprioriTermEnum.term());
      TermDocs testTermDocs = testReader.termDocs(testTermEnum.term());

      while (true) {
View Full Code Here

Examples of org.apache.lucene.index.TermEnum.term()

      // compare documents per term

      assertEquals(aprioriReader.docFreq(aprioriTermEnum.term()), testReader.docFreq(testTermEnum.term()));

      TermDocs aprioriTermDocs = aprioriReader.termDocs(aprioriTermEnum.term());
      TermDocs testTermDocs = testReader.termDocs(testTermEnum.term());

      while (true) {
        if (!aprioriTermDocs.next()) {
          assertFalse(testTermDocs.next());
          break;
View Full Code Here

Examples of org.apache.lucene.index.TermsEnum.term()

    try {
      TermsEnum iterator = terms.iterator(null);
      while (iterator.next() != null) {
        if (highFreqQueue.size() < 5) {
          highFreqQueue.add(new TermAndFreq(
              BytesRef.deepCopyOf(iterator.term()), iterator.docFreq()));
          lowFreqQueue.add(new TermAndFreq(
              BytesRef.deepCopyOf(iterator.term()), iterator.docFreq()));
        } else {
          if (highFreqQueue.top().freq < iterator.docFreq()) {
            highFreqQueue.top().freq = iterator.docFreq();
View Full Code Here

Examples of org.apache.lucene.search.PrefixTermEnum.term()

      try {
        IndexReader reader = indexReader();
        TermEnum tenum = new PrefixTermEnum(reader, new Term(field, prefix));
        do {
          if (tenum.term() == null) break;
          final String termText = tenum.term().text();
          terms.addObject(termText);
        } while (tenum.next());

      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of org.apache.lucene.search.TermStatistics.term()

            if (states[i]) {
                Term term = (Term) keys[i];
                out.writeString(term.field());
                out.writeBytesRef(term.bytes());
                TermStatistics stats = (TermStatistics) values[i];
                out.writeBytesRef(stats.term());
                out.writeVLong(stats.docFreq());
                out.writeVLong(DfsSearchResult.addOne(stats.totalTermFreq()));
            }
        }
        DfsSearchResult.writeFieldStats(out, fieldStatistics);
View Full Code Here

Examples of org.apache.lucene.search.WildcardTermEnum.term()

  public void generate(IndexReader reader) throws IOException {
    TermEnum enumerator = new WildcardTermEnum(reader, wildcard);
    TermDocs termDocs = reader.termDocs();
    try {
      do {
        Term term = enumerator.term();
        if (term==null) break;
        termDocs.seek(term);
        while (termDocs.next()) {
          handleDoc(termDocs.doc());
        }
View Full Code Here

Examples of org.compass.core.CompassQueryBuilder.term()

        CompassQueryBuilder queryBuilder = compassSession.queryBuilder();
        CompassQueryBuilder.CompassBooleanQueryBuilder instanceBoolBuilder = queryBuilder.bool();
        for (Iterator iter = clazzes.iterator(); iter.hasNext(); ) {
            Class clz = (Class) iter.next();
            instanceBoolBuilder.addShould(
                queryBuilder.term("$/poly/class", clz.getName())
            );
        }
        return instanceBoolBuilder.toQuery();
    }
}
View Full Code Here

Examples of org.zeromq.ZMQ.Context.term()

        c2.start();

        c1.join();
        c2.join();

        ctx.term();
    }

    /**
     * Test method for Router Mandatory
     */
 
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.TermEnum.term()

             ? reader.terms(new Term(fieldName, lowerTerm))
             : reader.terms(new Term(fieldName,"")));
       
        try {
           
            if (enumerator.term() == null) {
                return bits;
            }
           
            boolean checkLower = false;
            if (!includeLower) // make adjustments to set to exclusive
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.