@Test public void fetchValues_FIELD_WITH_POSTFIX() { SolrDocument doc = new SolrDocument(); doc.addField("judgeWithRole_#_PRESIDING_JUDGE", "Jan Kowalski"); doc.addField("judgeWithRole_#_PRESIDING_JUDGE", "Jan Nowak"); doc.addField("judgeWithRole_#_REPORTING_JUDGE", "Adam Nowak"); List<String> actual = fieldFetcher.fetchValues(doc, JudgmentIndexField.JUDGE_WITH_ROLE, "PRESIDING_JUDGE"); assertEquals(2, actual.size()); assertTrue(actual.contains("Jan Kowalski")); assertTrue(actual.contains("Jan Nowak")); }
public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); }
SolrFieldFetcher { public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); } }
SolrFieldFetcher { public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); }  }
SolrFieldFetcher { public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); }  String fetchValue(SolrDocument doc, F field); Long fetchLongValue(SolrDocument doc, F field); BigDecimal fetchCurrencyValue(SolrDocument doc, F field); LocalDate fetchDateValue(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field, String postfix); List<Pair<String, List<String>>> fetchValuesWithAttributes(SolrDocument doc, F field); List<Pair<String, List<E>>> fetchValuesWithEnumedAttributes(SolrDocument doc, F field, Class<E> allowedAttributes); }
SolrFieldFetcher { public List<String> fetchValues(SolrDocument doc, F field) { return fetchValues(doc, field.getFieldName()); }  String fetchValue(SolrDocument doc, F field); Long fetchLongValue(SolrDocument doc, F field); BigDecimal fetchCurrencyValue(SolrDocument doc, F field); LocalDate fetchDateValue(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field); List<String> fetchValues(SolrDocument doc, F field, String postfix); List<Pair<String, List<String>>> fetchValuesWithAttributes(SolrDocument doc, F field); List<Pair<String, List<E>>> fetchValuesWithEnumedAttributes(SolrDocument doc, F field, Class<E> allowedAttributes);  }