Package org.apache.lucene.util

Examples of org.apache.lucene.util.DocIdBitSet


    BitSet result = (BitSet) docIdBitSets.get( 0 ).getBitSet().clone();
    for ( int i = 1; i < listSize; i++ ) {
      BitSet bitSet = docIdBitSets.get( i ).getBitSet();
      result.and( bitSet );
    }
    return new DocIdBitSet( result );
  }
View Full Code Here


    BitSet result = (BitSet) docIdBitSets.get( 0 ).getBitSet().clone();
    for ( int i=1; i<listSize; i++ ) {
      BitSet bitSet = docIdBitSets.get( i ).getBitSet();
      result.and( bitSet );
    }
    return new DocIdBitSet( result );
  }
View Full Code Here

      public DocIdSet getDocIdSet (AtomicReaderContext context, Bits acceptDocs) {
        if (acceptDocs == null) acceptDocs = new Bits.MatchAllBits(5);
        BitSet bitset = new BitSet(5);
        if (acceptDocs.get(1)) bitset.set(1);
        if (acceptDocs.get(3)) bitset.set(3);
        return new DocIdBitSet(bitset);
      }
    };
  }
View Full Code Here

      @Override
      public DocIdSet getDocIdSet (AtomicReaderContext context, Bits acceptDocs) {
        assertNull("acceptDocs should be null, as we have an index without deletions", acceptDocs);
        BitSet bitset = new BitSet(5);
        bitset.set(0, 5);
        return new DocIdBitSet(bitset);
      }
    };
  }
View Full Code Here

    BitSet result = (BitSet) docIdBitSets.get( 0 ).getBitSet().clone();
    for ( int i = 1; i < listSize; i++ ) {
      BitSet bitSet = docIdBitSets.get( i ).getBitSet();
      result.and( bitSet );
    }
    return new DocIdBitSet( result );
  }
View Full Code Here

      @Override
      public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
        BitSet bs = new BitSet(reader.maxDoc());
        bs.set(0, reader.maxDoc());
        bs.set(docs1.scoreDocs[0].doc);
        return new DocIdBitSet(bs);
      }
    };

    TopDocs docs2 = full.search(queryE, filt, nDocs, sort);
   
View Full Code Here

      @Override
      public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
        BitSet bs = new BitSet(reader.maxDoc());
        bs.set(0, reader.maxDoc());
        bs.set(docs1.scoreDocs[0].doc);
        return new DocIdBitSet(bs);
      }
    };

    TopDocs docs2 = full.search(queryE, filt, nDocs, sort);
   
View Full Code Here

                        bitset.set(node.getDoc(reader));
                    }
                    i++;
//                }
            }
            docIds = new OpenBitSetDISI(new DocIdBitSet(bitset).iterator(), bitset.size());
        } catch (IOException e) {
            log.debug("Can't retrive bitset from hits", e);
        }
        return docIds;
    }
View Full Code Here

                        bitset.set(hit.getId());                       
                    }
                }
                bitset.set(docId);
            }
            docIds = new OpenBitSetDISI(new DocIdBitSet(bitset).iterator(), bitset.size());
        } catch (IOException e) {
            logger.debug("Can't retrive bitset from hits", e);
        }
        return docIds;
    }
View Full Code Here

      @Override
      public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
        BitSet bs = new BitSet(reader.maxDoc());
        bs.set(0, reader.maxDoc());
        bs.set(docs1.scoreDocs[0].doc);
        return new DocIdBitSet(bs);
      }
    };

    TopDocs docs2 = full.search(queryE, filt, nDocs, sort);
   
View Full Code Here

TOP

Related Classes of org.apache.lucene.util.DocIdBitSet

Copyright © 2018 www.massapicom. 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.