@Test public void fillFields_REFERENCING_COUNT() { SolrInputFieldFactory fieldFactory = new SolrInputFieldFactory(); SolrInputDocument doc = new SolrInputDocument(); JudgmentIndexingData indexingData = new JudgmentIndexingData(); indexingData.setJudgment(new CommonCourtJudgment()); indexingData.setReferencingCount(4); judgmentIndexFieldsFiller.fillFields(doc, indexingData); assertFieldValues(doc, fieldFactory.create("referencingJudgmentsCount", 4L)); }
public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { Judgment judgment = judgmentData.getJudgment(); fillIds(doc, judgment); fillSourceCode(doc, judgment); fillCourtType(doc, judgment); fillCourtCases(doc, judgment); fillJudges(doc, judgment); fillLegalBases(doc, judgment); fillReferencedRegulations(doc, judgment); fillReferencedCourtCases(doc, judgment); fillJudgmentDate(doc, judgment); fillJudgmentType(doc, judgment); fillMeansOfAppeal(doc, judgment); fillJudgmentResult(doc, judgment); fillContent(doc, judgment); fillMaxMoneyAmount(doc, judgment); fillReferencingCount(doc, judgmentData); }
JudgmentIndexFieldsFiller { public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { Judgment judgment = judgmentData.getJudgment(); fillIds(doc, judgment); fillSourceCode(doc, judgment); fillCourtType(doc, judgment); fillCourtCases(doc, judgment); fillJudges(doc, judgment); fillLegalBases(doc, judgment); fillReferencedRegulations(doc, judgment); fillReferencedCourtCases(doc, judgment); fillJudgmentDate(doc, judgment); fillJudgmentType(doc, judgment); fillMeansOfAppeal(doc, judgment); fillJudgmentResult(doc, judgment); fillContent(doc, judgment); fillMaxMoneyAmount(doc, judgment); fillReferencingCount(doc, judgmentData); } }
JudgmentIndexFieldsFiller { public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { Judgment judgment = judgmentData.getJudgment(); fillIds(doc, judgment); fillSourceCode(doc, judgment); fillCourtType(doc, judgment); fillCourtCases(doc, judgment); fillJudges(doc, judgment); fillLegalBases(doc, judgment); fillReferencedRegulations(doc, judgment); fillReferencedCourtCases(doc, judgment); fillJudgmentDate(doc, judgment); fillJudgmentType(doc, judgment); fillMeansOfAppeal(doc, judgment); fillJudgmentResult(doc, judgment); fillContent(doc, judgment); fillMaxMoneyAmount(doc, judgment); fillReferencingCount(doc, judgmentData); }  }
JudgmentIndexFieldsFiller { public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { Judgment judgment = judgmentData.getJudgment(); fillIds(doc, judgment); fillSourceCode(doc, judgment); fillCourtType(doc, judgment); fillCourtCases(doc, judgment); fillJudges(doc, judgment); fillLegalBases(doc, judgment); fillReferencedRegulations(doc, judgment); fillReferencedCourtCases(doc, judgment); fillJudgmentDate(doc, judgment); fillJudgmentType(doc, judgment); fillMeansOfAppeal(doc, judgment); fillJudgmentResult(doc, judgment); fillContent(doc, judgment); fillMaxMoneyAmount(doc, judgment); fillReferencingCount(doc, judgmentData); }  abstract boolean isApplicable(CourtType courtType); void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData); @Autowired void setFieldAdder(SolrFieldAdder<JudgmentIndexField> fieldAdder); }
JudgmentIndexFieldsFiller { public void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData) { Judgment judgment = judgmentData.getJudgment(); fillIds(doc, judgment); fillSourceCode(doc, judgment); fillCourtType(doc, judgment); fillCourtCases(doc, judgment); fillJudges(doc, judgment); fillLegalBases(doc, judgment); fillReferencedRegulations(doc, judgment); fillReferencedCourtCases(doc, judgment); fillJudgmentDate(doc, judgment); fillJudgmentType(doc, judgment); fillMeansOfAppeal(doc, judgment); fillJudgmentResult(doc, judgment); fillContent(doc, judgment); fillMaxMoneyAmount(doc, judgment); fillReferencingCount(doc, judgmentData); }  abstract boolean isApplicable(CourtType courtType); void fillFields(SolrInputDocument doc, JudgmentIndexingData judgmentData); @Autowired void setFieldAdder(SolrFieldAdder<JudgmentIndexField> fieldAdder);  }