From c2d9d1c60248b6e43e3e46a47aa0e5dc1a07b23c Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Fri, 2 Jan 2015 20:08:16 +0000 Subject: [PATCH] SOLR-6905: Test pseudo-field retrieval in distributed search This closes #122. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1649110 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ .../core/src/test/org/apache/solr/TestDistributedSearch.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 7c19304d40d..6e576b2ef98 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -602,6 +602,9 @@ Other Changes * SOLR-6906: Fix typo bug in DistributedDebugComponentTest.testCompareWithNonDistributedRequest (Ramkumar Aiyenga via Erick Erickson) +* SOLR-6905: Test pseudo-field retrieval in distributed search. + (Ramkumar Aiyengar via shalin) + ================== 4.10.3 ================== Bug Fixes diff --git a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java index d68789a358d..be50d6230e8 100644 --- a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java +++ b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java @@ -315,6 +315,11 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase { query("q","*:*", "fl",i1, "fl", "id","sort",i1 + " desc"); query("q","*:*", "fl", "id", "fl",nint, "fl",tint,"sort",i1 + " desc"); query("q","*:*", "fl",nint, "fl", "id", "fl",tint,"sort",i1 + " desc"); + handle.put("did", SKIPVAL); + query("q","*:*", "fl","did:[docid]","sort",i1 + " desc"); + handle.remove("did"); + query("q","*:*", "fl","log(" + tlong + "),abs(" + tlong + "),score","sort",i1 + " desc"); + query("q","*:*", "fl","n_*","sort",i1 + " desc"); // basic spellcheck testing query("q", "toyata", "fl", "id,lowerfilt", "spellcheck", true, "spellcheck.q", "toyata", "qt", "spellCheckCompRH_Direct", "shards.qt", "spellCheckCompRH_Direct");