@Test public void fetchValue() { SolrDocument doc = new SolrDocument(); doc.addField("judge", "Jan Kowalski"); String actual = fieldFetcher.fetchValue(doc, JudgmentIndexField.JUDGE); assertEquals("Jan Kowalski", actual); }
public String fetchValue(SolrDocument doc, F field) { Object value = doc.getFirstValue(field.getFieldName()); if (value == null) { return null; } return (String) value; }
SolrFieldFetcher { public String fetchValue(SolrDocument doc, F field) { Object value = doc.getFirstValue(field.getFieldName()); if (value == null) { return null; } return (String) value; } }
SolrFieldFetcher { public String fetchValue(SolrDocument doc, F field) { Object value = doc.getFirstValue(field.getFieldName()); if (value == null) { return null; } return (String) value; }  }
SolrFieldFetcher { public String fetchValue(SolrDocument doc, F field) { Object value = doc.getFirstValue(field.getFieldName()); if (value == null) { return null; } return (String) value; }  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 String fetchValue(SolrDocument doc, F field) { Object value = doc.getFirstValue(field.getFieldName()); if (value == null) { return null; } return (String) value; }  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);  }