Searched defs:res (Results 1 - 10 of 10) sorted by relevance

/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/example/
H A DTestAssociationExample.java42 private void assertExampleResult(ExampleResult res, double[] expectedResults) { argument
43 assertNotNull("Null result!", res);
44 assertNotNull("Null facet result!", res.getFacetResults());
45 assertEquals("Wrong number of results!", 1, res.getFacetResults().size());
46 assertEquals("Wrong number of facets!", 2, res.getFacetResults().get(0).getNumValidDescendants());
48 Iterable<? extends FacetResultNode> it = res.getFacetResults().get(0).getFacetResultNode().getSubResults();
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/
H A DFSTLookupTest.java180 private void assertMatchEquals(List<LookupResult> res, String... expected) { argument
181 String [] result = new String [res.size()];
182 for (int i = 0; i < res.size(); i++)
183 result[i] = res.get(i).toString();
H A DFSTCompletionTest.java221 private void assertMatchEquals(List<Completion> res, String... expected) { argument
222 String [] result = new String [res.size()];
223 for (int i = 0; i < res.size(); i++) {
224 result[i] = res.get(i).toString();
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/
H A DFSTCompletion.java234 List<Completion> res = lookupSortedByWeight(key, num, true);
237 Collections.sort(res);
238 if (res.size() > num) {
239 res = res.subList(0, num);
241 return res;
258 final ArrayList<Completion> res = new ArrayList<Completion>(Math.min(10, num));
271 if (collect(res, num, rootArc.label, output, arc) && !collectAll) {
276 if (!checkExistingAndReorder(res, key)) {
280 while (res
352 collect(List<Completion> res, int num, int bucket, BytesRef output, Arc<Object> arc) argument
[all...]
H A DFSTLookup.java308 List<LookupResult> res = lookupSortedByWeight(key, num, true);
311 Collections.sort(res, new Comparator<LookupResult>() {
317 if (res.size() > num) {
318 res = res.subList(0, num);
320 return res;
334 final ArrayList<LookupResult> res = new ArrayList<LookupResult>(Math.min(10, num));
351 if (collect(res, num, weight, output, arc) && !collectAll) {
355 if (!checkExistingAndReorder(res, key)) {
359 while (res
422 collect(List<LookupResult> res, int num, long weight, StringBuilder output, Arc<Object> arc) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/
H A DStatsValuesFactory.java166 NamedList<Object> res = new SimpleOrderedMap<Object>();
168 res.add("min", min);
169 res.add("max", max);
170 res.add("count", count);
171 res.add("missing", missing);
172 addTypeSpecificStats(res);
182 res.add(FACETS, nl);
184 return res;
228 * @param res NamedList to add the type specific statistics too
230 protected abstract void addTypeSpecificStats(NamedList<Object> res); argument
293 addTypeSpecificStats(NamedList<Object> res) argument
382 addTypeSpecificStats(NamedList<Object> res) argument
438 addTypeSpecificStats(NamedList<Object> res) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/servlet/
H A DSolrDispatchFilter.java368 protected void sendError(HttpServletResponse res, Throwable ex) throws IOException { argument
389 res.sendError( code, ex.getMessage() + trace );
/lucene-3.6.0/solr/core/src/java/org/apache/solr/servlet/cache/
H A DHttpCacheHeaderUtil.java45 public static void sendNotModified(HttpServletResponse res) argument
47 res.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
50 public static void sendPreconditionFailed(HttpServletResponse res) argument
52 res.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED);
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/response/
H A DLukeResponse.java193 public void setResponse(NamedList<Object> res) { argument
194 super.setResponse(res);
197 indexInfo = (NamedList<Object>) res.get("index");
199 NamedList<Object> schema = (NamedList<Object>) res.get("schema");
200 NamedList<Object> flds = (NamedList<Object>) res.get("fields");
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DSolrPluginUtils.java186 SolrQueryResponse res) {
188 return setReturnFields(req.getParams().get(CommonParams.FL), res);
198 SolrQueryResponse res) {
211 res.setReturnFields(set);
238 SolrQueryResponse res) throws IOException {
246 Set<String> returnFields = res.getReturnFields();
185 setReturnFields(SolrQueryRequest req, SolrQueryResponse res) argument
197 setReturnFields(String fl, SolrQueryResponse res) argument
235 optimizePreFetchDocs(DocList docs, Query query, SolrQueryRequest req, SolrQueryResponse res) argument

Completed in 4922 milliseconds