Interface SampleDocumentsLoader

All Superinterfaces:
NamedListInitializedPlugin
All Known Implementing Classes:
DefaultSampleDocumentsLoader

public interface SampleDocumentsLoader extends NamedListInitializedPlugin
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    parseDocsFromStream(org.apache.solr.common.params.SolrParams params, org.apache.solr.common.util.ContentStream stream, int maxDocsToLoad)
     

    Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin

    init
  • Method Details

    • 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.