This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Apr 11, 2016, 9:24 AM
6 Posts
topic has been resolvedResolved

File name in FT Index

  • Category: Domino Server
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator
  • Tags:
  • Replies: 2

Is is possible to include the File names of attachments (the $FILE field) in a FT index? I read somewhere the it should be possible to search for the file name with "FIELD $FILE CONTAINS filename"  but I cant get this to work. 

Apr 11, 2016, 3:33 PM
122 Posts
Re: File name in FT Index
Hello Anders!

To use the "FIELD $FILE CONTAINS filename" firstly you should create the index enabling the option "Index attached files" under "Indexing options".

By the way, the Full Text search feature is not designed to search for an attachment's file name. The attachment file name is part of the attachment icon in the rich text field, and the icon is not searched.  Full Text search supports searching the content of attachments only, not their icons.

As a workaround, add a computed Text field to the relative forms and give it the following formula:  
@AttachmentNames
 
The field should also be designed to be a multi-value field by enabling the Field property, "Allow multiple values." The field can optionally be hidden.
 
If you do not have Designer access to the database, then you could add the file names to documents using a Formula agent designed to act on selected documents with the following formula:  
Field attachmentfilenames := @AttachmentNames

I hope it helps!

Best Regards!

Rodrigo San Vicente
IBM
 
Apr 12, 2016, 8:30 AM
6 Posts
File name in FT Index

Hi

Thanks for the explanation. "FIELD $FILE CONTAINS filename" doesn't work even if "Index attached files" is selected, but the suggested code works fine. Thanks


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal