Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include file path? #16

Closed
rajasekhar-gundala opened this issue Mar 7, 2023 · 3 comments
Closed

How to include file path? #16

rajasekhar-gundala opened this issue Mar 7, 2023 · 3 comments
Labels
question Further information is requested

Comments

@rajasekhar-gundala
Copy link

rajasekhar-gundala commented Mar 7, 2023

@koltyakov, Thank you very much for your contribution to the plugin. I am testing the plugin to ingest data into Elasticsearch.
I wanted to include file path. Can you guide me on it?

lists:
    Shared Documents:
        select:
            - FileLeafRef
            - FileRef
            - FileDirRef
            - Author/Title
            - File/Length

Shared Documents File Details (SharePoint)

image

Elasticsearch Details

image

@koltyakov
Copy link
Owner

koltyakov commented Mar 7, 2023

Hi @rajaseg,

Thanks for trying the plugin. It's so important to collect feedback on this early stages.

Technically, Fileref is the path to the file, relative to the document library. UPD: Same as File/ServerRelativeUrl.

Please try this as well:

lists:
    Shared Documents:
        select:
            - EncodedAbsUrl # Absolute URL
            - File/ServerRelativeUrl # SharePoint host relative URL 
        expand:
            - File

@koltyakov koltyakov added the question Further information is requested label Mar 7, 2023
@rajasekhar-gundala
Copy link
Author

Hi @rajaseg,

Thanks for trying the plugin. It's so important to collect feedback on this early stages.

Technically, Fileref is the path to the file, relative to the document library.

Please try this as well:

lists:
    Shared Documents:
        select:
            - EncodedAbsUrl # Absolute URL
            - File/ServerRelativeUrl # SharePoint host relative URL 
        expand:
            - File

@koltyakov, Thank you very much. I have just tried the above options. It worked without any issue.

image

Both the fields FileRef and File/ServerRelativeUrl are retrieving the same info. I think one should be enough.

Once again thank you very much for the help.

@koltyakov
Copy link
Owner

Wonderful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants