Highlighted
Outstanding Contributor.
Outstanding Contributor.
495 views

Indexing folders?

Is it possible to index folders using the filesystem connector?

The goal is to be able to browse a file structure via IDOL queries

The solution I have come up with doesn't work for traversing through multiple levels of folders with no contents

0 Likes
4 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Indexing folders?

On a per document basis, you can write a Lua script in connector that splits DREREFERENCE into fields that represent the folder structure.   Lua parse_csv() where delimiter is / should work.

I think this is what you were asking to do.  If not, then please re-phrase. 

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Indexing folders?

That's as far as I got, however it isn't quite meeting the requirements - is it possible to index them such that they appear as their own "hits" so that they can be subject to sorting/filtering/paging?

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Indexing folders?

Unfortunately, I don’t see any settings in the FileSystem Connector to automatically make an indexable document as you desire.

A solution is to write a script - pick your language (Powershell, Python, Perl, non-P languages) and produce an a=ingest packet to send to CFS just the connector normally does. Folder deletes is maybe tricky part to handle without the connector data store.

You could skip CFS and make IDX and send to DIH / Content directly.

Assuming you have a valid support account you can file a support ticket asking for an enhancement where it will get consideration.
0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Indexing folders?

Thanks, how would I trigger the script?

Is it possible to trigger an ingest from a Lua ingest script?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.