List of usage examples for org.apache.solr.common.params MultiMapSolrParams get
@Override
public String get(String name)
From source file:org.apache.nifi.processors.solr.RequestParamsUtilTest.java
License:Apache License
@Test public void testSimpleParse() { MultiMapSolrParams map = RequestParamsUtil.parse("a=1&b=2&c=3"); Assert.assertEquals("1", map.get("a")); Assert.assertEquals("2", map.get("b")); Assert.assertEquals("3", map.get("c")); }
From source file:org.apache.nifi.processors.solr.RequestParamsUtilTest.java
License:Apache License
@Test public void testParseWithSpaces() { MultiMapSolrParams map = RequestParamsUtil.parse("a = 1 &b= 2& c= 3 "); Assert.assertEquals("1", map.get("a")); Assert.assertEquals("2", map.get("b")); Assert.assertEquals("3", map.get("c")); }