Package org.apache.jackrabbit.core.query.lucene

Examples of org.apache.jackrabbit.core.query.lucene.QueryHits


            } catch (RepositoryException e) {
                throw Util.createIOException(e);
            }

            IndexReader reader = context.getIndexReader();
            QueryHits hits = context.evaluate(and);
            try {
                matches = new HashMap<Integer, Float>();
                ScoreNode sn;
                while ((sn = hits.nextScoreNode()) != null) {
                    matches.put(sn.getDoc(reader), sn.getScore());
                }
            } finally {
                hits.close();
            }
        }
    }
View Full Code Here


            } catch (RepositoryException e) {
                throw Util.createIOException(e);
            }

            IndexReader reader = context.getIndexReader();
            QueryHits hits = context.evaluate(and);
            try {
                matches = new BitSet();
                ScoreNode sn;
                while ((sn = hits.nextScoreNode()) != null) {
                    matches.set(sn.getDoc(reader));
                }
            } finally {
                hits.close();
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.query.lucene.QueryHits

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.