Answers.Body: <p>If you are on WordPress, there are at least of couple of plugins that do full-text search on files:</p>
  
  <ul>
  <li><a href="https://searchwp.com/" rel="nofollow">https://searchwp.com/</a></li>
  <li><a href="https://wordpress.org/plugins/opensearchserver-search/" rel="nofollow">https://wordpress.org/plugins/opensearchserver-search/</a></li>
  </ul>
  
  <p>Since the files uploaded with CiviCRM are stored in the same folder hierarchy as the other WordPress uploads those plugins should be able to index and locate these files.</p>
  
  <p>However, they will not be able to link the document back to the CiviCRM contact they are attached to. This feature could be achieved with a custom development.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T03:53:35.163Z
Answers.LastActivityDate: 2016-06-23T03:53:35.163Z
Answers.UserDisplayName: cividesk
Body: <p>We're still trying to figure out if CiviCRM will work for our organization. Our users would like to have the functionality to search the name of a document that has been attached to a case. Ideally (though I realize it's probably not possible), they would like to be able to search the contents of an attached document.</p>
  
  <p>As an example, a client might call in and request a publication on apple orchards. Say we send them a publication called "apple orchard management 101" and document that in the case and possibly attach a pdf to the case. Going forward they might like to search to find all the cases where that publication was sent to a client. Or they would like to search for all cases where they were sent a publication (pdf) which included the text "organic apple production". </p>
  
  <p>I know I'm reaching here, but would love to know if anyone has accomplished anything like this.</p>
  
  <p>Thanks in advance.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-10T01:46:20.260Z
Comments.Text: which CMS? only asking because Drupal civicrm entity and searchapi gets a long way in to searching in civi stuff in case that is an option to consider if no-one comes back with a direct route
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-10T14:32:25.347Z
Comments.Text: It is set up with WordPress.
Comments.UserDisplayName: 406CODE
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-10T18:49:58.740Z
Comments.Text: I suspect this could be very tricky. How many such docs do you send out? Is it conceivable that you have a specific Activity Type for 'Provided PDF' and then a field on their that lists your various documents? Then you can keep track by searching that field on the Activity. If this is any help i will convert to an answer
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-11T13:57:21.050Z
Comments.Text: That would require the user to not only attach the document but to enter the title of the document in yet another field. We're trying to reduce the workflow and I think this would only make it more complicated. Ideally, we'd just like to be able to search the uploaded document titles and better yet, their content.
Comments.UserDisplayName: 406CODE
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-13T15:41:02.423Z
Comments.Text: I would say - Searching a file from the directory is not a problem I have done that - but searching a file content from a PDF is a problem - if it is with txt or word then it should be alright - Else we need to convert all the PDF into word document
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Tags: <civicase><search><attachments>
Title: Is it possible to set up to search name of attached document or better yet, contents of attach doc?
ThreadText: # Is it possible to set up to search name of attached document or better yet, contents of attach doc?
  
  (Asked by: username_0 on 2016-05-09)
  
  We're still trying to figure out if CiviCRM will work for our organization. Our users would like to have the functionality to search the name of a document that has been attached to a case. Ideally (though I realize it's probably not possible), they would like to be able to search the contents of an attached document.
  
  As an example, a client might call in and request a publication on apple orchards. Say we send them a publication called "apple orchard management 101" and document that in the case and possibly attach a pdf to the case. Going forward they might like to search to find all the cases where that publication was sent to a client. Or they would like to search for all cases where they were sent a publication (pdf) which included the text "organic apple production".
  
  I know I'm reaching here, but would love to know if anyone has accomplished anything like this.
  
  Thanks in advance.
  
  **Tags:** civicase, search, attachments
  
  > **Comments:**
  > **username_1**: which CMS? only asking because Drupal civicrm entity and searchapi gets a long way in to searching in civi stuff in case that is an option to consider if no-one comes back with a direct route  
  > **username_0**: It is set up with WordPress.  
  > **username_1**: I suspect this could be very tricky. How many such docs do you send out? Is it conceivable that you have a specific Activity Type for 'Provided PDF' and then a field on their that lists your various documents? Then you can keep track by searching that field on the Activity. If this is any help i will convert to an answer  
  > **username_0**: That would require the user to not only attach the document but to enter the title of the document in yet another field. We're trying to reduce the workflow and I think this would only make it more complicated. Ideally, we'd just like to be able to search the uploaded document titles and better yet, their content.  
  > **username_2**: I would say - Searching a file from the directory is not a problem I have done that - but searching a file content from a PDF is a problem - if it is with txt or word then it should be alright - Else we need to convert all the PDF into word document  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-06-23. Score: 1
  
  If you are on WordPress, there are at least of couple of plugins that do full-text search on files:
  
  * <https://searchwp.com/>
  * <https://wordpress.org/plugins/opensearchserver-search/>
  
  Since the files uploaded with CiviCRM are stored in the same folder hierarchy as the other WordPress uploads those plugins should be able to index and locate these files.
  
  However, they will not be able to link the document back to the CiviCRM contact they are attached to. This feature could be achieved with a custom development.
  
  
  ---
  
  