Interface SampleDocumentsLoader

    • Method Detail

      • parseDocsFromStream

        SampleDocuments parseDocsFromStream​(org.apache.solr.common.params.SolrParams params,
                                            org.apache.solr.common.util.ContentStream stream,
                                            int maxDocsToLoad)
                                     throws IOException
        Throws:
        IOException
      • ensureUniqueKey

        default boolean ensureUniqueKey​(SchemaField idField,
                                        List<org.apache.solr.common.SolrInputDocument> docs)
        Ensure every sample document has a unique ID, but only applies if the unique key field is a string.