CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Attachment Search
Pages: [1]

Author Topic: Attachment Search  (Read 573 times)

Bela Patkai

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal6
  • MySQL version: 5.1.x
  • PHP version: 5.2.x
Attachment Search
November 13, 2011, 11:22:29 pm
Is it possible to search for attachmentsin CiviCRM - and if not (I found no trace of it in the documentation) then would there be a simple way to implement it?

Bela Patkai

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal6
  • MySQL version: 5.1.x
  • PHP version: 5.2.x
Re: Attachment Search
November 13, 2011, 11:29:48 pm
E.g. in an Activity it would be great to not just add attachments, but also be able to search for activities with attachments.

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Attachment Search
November 14, 2011, 01:16:35 am
Can you clarify?

An attachment custom data field can be added to just about any section of CiviCRM. When the custom data field is created and used, then searching for attachments would be accomplished using advanced search.
“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Attachment Search
November 14, 2011, 01:30:54 am
There is a civicrm_api('file','get',$params) action - never tried using it
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Attachment Search
November 14, 2011, 07:09:09 am

If you mean, search within attachments: civicrm does not do that. We'll need to adopt a different approach to search if we want to do that (since the attachments are stored outside of mysql)

I think civicrm needs to add a more generic (and faster) searrch engine like Solr/Lucene. this will allow us to also include attachments in the search

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Attachment Search

This forum was archived on 2017-11-26.