Example usage for org.apache.solr.common.params MultiMapSolrParams get

List of usage examples for org.apache.solr.common.params MultiMapSolrParams get

Introduction

In this page you can find the example usage for org.apache.solr.common.params MultiMapSolrParams get.

Prototype

@Override
    public String get(String name) 

Source Link

Usage

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"));
}