Searched refs:query (Results 1 - 9 of 9) sorted by relevance
/opengrok-sun/src/org/opensolaris/opengrok/search/context/ |
H A D | QueryMatchers.java | 41 * Utility class used to extract the terms used in a query 43 * so the caller must pass a rewritten query (see query.rewrite) to obtain a list of 53 * Get the terms from a query and returs a list of DFAs which match 56 * @param query the query to generate matchers for 62 public LineMatcher[] getMatchers(Query query, Map<String, Boolean> fields) { argument 67 getTerms(query); 81 private void getTerms(Query query) { argument 82 if (query instanceo 95 getBooleans(BooleanQuery query) argument 104 getPhrases(PhraseQuery query) argument 116 getTerm(TermQuery query) argument 128 getWildTerm(WildcardQuery query) argument 136 getPrefix(PrefixQuery query) argument [all...] |
H A D | Context.java | 71 * @param query the query to generate the result for 74 public Context(Query query, Map<String, String> queryStrings) { argument 76 m = qm.getMatchers(query, tokenFields); 79 //System.err.println("Found Matchers = "+ m.length + " for " + query); 90 * Build the {@code queryAsURI} string that holds the query in a form 93 * @param subqueries a map containing the query text for each field 105 field = "q"; // bah - search query params should be consistent!
|
H A D | HistoryContext.java | 60 public HistoryContext(Query query) { argument 62 m = qm.getMatchers(query, tokenFields);
|
/opengrok-sun/test/org/opensolaris/opengrok/search/ |
H A D | SummarizerTest.java | 43 Query query = new QueryBuilder().setFreetext("beta").build(); 44 Summarizer instance = new Summarizer(query, new CompatibleAnalyser());
|
/opengrok-sun/src/org/opensolaris/opengrok/search/ |
H A D | QueryBuilder.java | 39 * Helper class that builds a Lucene query based on provided search terms for 62 * A map containing the query text for each field. (We use a sorted map here 63 * only because we have tests that check the generated query string. If we 72 * @param freetext query string to set 82 * @return {@code null} if not set, the query string otherwise. 91 * @param defs query string to set 101 * @return {@code null} if not set, the query string otherwise. 110 * @param refs query string to set 120 * @return {@code null} if not set, the query string otherwise. 129 * @param path query strin 245 addQueryText(String field, String query) argument 265 escapeQueryString(String field, String query) argument 295 hasClause(BooleanQuery query, Occur occur) argument [all...] |
H A D | Summarizer.java | 59 private final Set<String> highlight = new HashSet<String>(); // put query terms in table 61 public Summarizer(Query query, Analyzer a) { argument 63 getTerms(query); 124 // containing any query terms. 126 // @TODO: check that phrases in the query are matched in the fragment 137 // how many query terms are present. An excerpt is 168 // If we find a term that's in the query... 183 // SUM_CONTEXT beyond the last query-term. 300 * Get the terms from a query and adds them to hightlite 303 * @param query 306 getTerms(Query query) argument 320 getBooleans(BooleanQuery query) argument 329 getPhrases(PhraseQuery query) argument 336 getTerm(TermQuery query) argument 340 getWildTerm(WildcardQuery query) argument 343 getPrefix(PrefixQuery query) argument [all...] |
H A D | SearchEngine.java | 102 private Query query; field in class:SearchEngine 132 * @return a query builder 146 query = createQueryBuilder().build(); 147 ret = (query != null); 166 searcher.search(query, collector); 170 searcher.search(query, collector); 204 searcher.search(query, collector); 208 searcher.search(query, collector); 219 return query.toString(); 238 query [all...] |
/opengrok-sun/src/org/opensolaris/opengrok/web/ |
H A D | SearchHelper.java | 95 * the QueryBuilder used to create the query 99 * the order to use to ordery query results 130 * list of docs which result from the executing the query 138 * the query created by the used {@link QueryBuilder} via 141 public Query query; field in class:SearchHelper 165 * Default query parse error message prefix 167 public static final String PARSE_ERROR_MSG = "Unable to parse your query: "; 179 * <li>{@link #query}</li> <li>{@link #searcher}</li> <li>{@link #sort}</li> 183 * @param projects project to use query. If empty, a none-project opengrok 194 query [all...] |
/opengrok-sun/src/org/opensolaris/opengrok/history/ |
H A D | DirectoryHistoryReader.java | 90 Query query; 93 query = qparser.parse(path); 94 TopFieldDocs fdocs = searcher.search(query, null, hitsPerPage * cachePages, sort); 95 fdocs = searcher.search(query, null, fdocs.totalHits, sort); 98 OpenGrokLogger.getLogger().log(Level.WARNING, "An error occured while parsing search query", e);
|
Completed in 14 milliseconds