SOLR-6633 changing the field name from \_src to \_src\_

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1644135 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-12-09 18:05:06 +00:00
parent 735ea0129d
commit 98b1b7064b
1 changed files with 2 additions and 2 deletions

View File

@ -87,13 +87,13 @@ public class SolrExampleJettyTest extends SolrExampleTests {
assertEquals(2,rsp.getResults().getNumFound());
SolrDocument doc = rsp.getResults().get(0);
String src = (String) doc.getFieldValue("_src");
String src = (String) doc.getFieldValue("_src_");
Map m = (Map) ObjectBuilder.fromJSON(src);
assertEquals("abc1",m.get("id"));
assertEquals("name1",m.get("name"));
doc = rsp.getResults().get(1);
src = (String) doc.getFieldValue("_src");
src = (String) doc.getFieldValue("_src_");
m = (Map) ObjectBuilder.fromJSON(src);
assertEquals("name2",m.get("name"));