Package org.apache.lucene.gdata.search

Examples of org.apache.lucene.gdata.search.StandardGdataSearcher


            this.idlist.add("" + i);
        }
        writer.close();
        this.searcher = new TestRefcounter(new IndexSearcher(this.dir));
        this.searcher.increamentReference();
        this.gdataSearcher = new StandardGdataSearcher(this.searcher);
    }
View Full Code Here


     * Test method for
     * 'org.apache.lucene.gdata.search.StandardGdataSearcher.StandardGdataSearcher(ReferenceCounter<IndexSearcher>)'
     */
    public void testStandardGdataSearcher() {
        try {
            new StandardGdataSearcher(null);
            fail("searcher ref is null");
        } catch (IllegalArgumentException e) {

        }
        new StandardGdataSearcher(this.searcher);
    }
View Full Code Here

    /*
     * Test method for
     * 'org.apache.lucene.gdata.search.StandardGdataSearcher.close()'
     */
    public void testClose() throws IOException {
        StandardGdataSearcher s = new StandardGdataSearcher(new TestRefcounter(
                new IndexSearcher(this.dir)));
        s.close();
        try {
            s.search(null, 0, 0,this.feedId);
            fail("searcher is closed");
        } catch (IllegalStateException e) {
        }

    }
View Full Code Here

                throw new RuntimeException("no index for service "+service.getName());
            searcher = serviceIndex.getSearcher();
            searcher.increamentReference();
        }

        return new StandardGdataSearcher(searcher);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.gdata.search.StandardGdataSearcher

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.