Book a Demo

Author Topic: Searching linked documents  (Read 3155 times)

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Searching linked documents
« on: February 07, 2012, 06:50:08 pm »
We have some information that we store in linked documents as notes fields cannot contain tables.

Any ideas on how to search all the linked documents in the repository for a given string?

Ideally it'd be nice if simple model search did this :-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Searching linked documents
« Reply #1 on: February 07, 2012, 07:22:51 pm »
I'm afraid it won't be that easy.
Linked documents are stored int he the the database in the table t_document as a zipped RTF file.

You can however write add-in searches, so you could write an add-in, that reads the contents of the linked documents, and searches the text.

see this page for more info: http://www.sparxsystems.com/enterprise_architect_user_guide/9.2/automation/add_in_search.html

Geert

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Searching linked documents
« Reply #2 on: February 07, 2012, 08:03:43 pm »
Yeah, thought you'd say that Geert ;-)

Had the same issue with the audit and had to write a batch to extract and denormalise the data so the custom add-in search could work at a decent pace.

Sigh. Here we go again :-(