mirror of https://github.com/apache/lucene.git
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:
parent
735ea0129d
commit
98b1b7064b
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue