Title: Adding additional documents to index
Last modified: August 30, 2016

---

# Adding additional documents to index

 *  Resolved [Paul](https://wordpress.org/support/users/pbrostcg3com/)
 * (@pbrostcg3com)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-additional-documents-to-index/)
 * We have a secure section of our site that allows users to upload documents (pdfs,
   word, xls, csv) using the jqueryFileUpload script. We have full control over 
   saving the files to the server, is it possible to use the WPSolr script to add
   these to the index? They’re not tagged to any post, but are accessible from a
   page (url’s will be in a format like /docDownload?file=XYZ&folder=MyFolder)? 
   In the php code that saves the documents, would we be able to instantiate WPSolrIndexSolrClient
   and call something similar to create_solr_document_from_post_or_attachment to
   index our content?
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-additional-documents-to-index/#post-6837231)
 * It seems difficult, as Solr documents are mapped to a post (custom type, post,
   page, attachment) in WPSOLR.
 * If your own indexed objects (files, users, …) are not posts, it’s a rewrite of
   WPSOLR you need.
 * The best option for you would be to load your files in attachments, but you probably
   have your own constraints.

Viewing 1 replies (of 1 total)

The topic ‘Adding additional documents to index’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/adding-additional-documents-to-index/#post-6837231)
 * Status: resolved