/** * Adds (or replaces) the fields targeted by this translation, by default {@code name}, {@code def} and * {@code synonym} with the {@link #getTargetLocale() targeted locale} as a suffix, for example {@code name_es}. * * @throws SolrServerException if communicating with the Solr server failed * @throws IOException if communicating with the Solr server failed */ protected void addFields() throws SolrServerException, IOException { addField("name_" + getTargetLocale().toString(), false); addField("def_" + getTargetLocale().toString(), false); addField("synonym_" + getTargetLocale().toString(), true); }
/** * Adds (or replaces) the fields targeted by this translation, by default {@code name}, {@code def} and * {@code synonym} with the {@link #getTargetLocale() targeted locale} as a suffix, for example {@code name_es}. * * @throws SolrServerException if communicating with the Solr server failed * @throws IOException if communicating with the Solr server failed */ protected void addFields() throws SolrServerException, IOException { addField("name_" + getTargetLocale().toString(), false); addField("def_" + getTargetLocale().toString(), false); addField("synonym_" + getTargetLocale().toString(), true); }