Lines Matching defs:search
23 package org.opensolaris.opengrok.search;
37 import org.apache.lucene.search.IndexSearcher;
38 import org.apache.lucene.search.Query;
39 import org.apache.lucene.search.ScoreDoc;
40 import org.apache.lucene.search.TopScoreDocCollector;
51 import org.opensolaris.opengrok.search.Summary.Fragment;
52 import org.opensolaris.opengrok.search.context.Context;
53 import org.opensolaris.opengrok.search.context.HistoryContext;
159 * @param root which db to search
166 searcher.search(query, collector);
170 searcher.search(query, collector);
184 * @param root list of projects to search
204 searcher.search(query, collector);
208 searcher.search(query, collector);
223 * Execute a search. Before calling this function, you must set the
224 * appropriate seach critera with the set-functions. Note that this search
230 public int search() {
244 // search all projects
245 //TODO support paging per project (in search.java)
249 // search the index database
286 * get results , if no search was started before, no results are returned
287 * this method will requery if end end is more than first query from search,
293 * @param ret list of results from start to end or null/empty if no search
298 //return if no start search() was done
311 searcher.search(query, collector);
312 } catch (Exception e) { // this exception should never be hit, since search() will hit this before