Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7534779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:07:01+00:00 2026-05-30T06:07:01+00:00

I am currently accessing the path attribute of a media node (in order to

  • 0

I am currently accessing the path attribute of a media node (in order to index its ancestor for PDF full index search, but that’s not necessary to know for this question), and I’m quite surprised to find that not all ancestors are actually listed in the comma-delimited list of all ancestors!

For example, if I’ve got a media tree like the following:

-Media Group 1 (id: 123)

    • Sub Group 1 (id: 234)
      • some-pdf.pdf (id: 334)

-Media Group 2 (id: 1023)

    • Sub Group 1 (id: 1234)
      • some-other-pdf.pdf (id: 1334)

I would expect that the path for some-pdf.pdf would be { -1, 234, 123} and some-other-pdf.pdf to be {-1, 1023, 1234 } but what I’m finding is that surprisingly often, the grandparents aren’t present! For example, some-pdf.pdf would be { -1, 234 } and some-other-pdf.pdf is { -1, 1234 }.

This is particularly problematic because I need to know what the Media Group is as a client requires that a search can be filtered by the group (meaning the level 1 folder for each PDF in meda).

Is this particular to my installation for some reason or is it really that I can’t rely on “path” to be accurately containing all ancestors, particularly the first level ones?

Thanks in advance,

Ted

UPDATE:

Maybe the context does matter more than I thought: it appears that while the complete ancestor path is indeed in the database (as expected), for some reason it’s not available in the context I need it in:

    private void Indexer_GatheringNodeData(object sender, IndexingNodeDataEventArgs e)
    {
        //Log.Add(LogTypes.Debug, 0, "PDFIndexer node indexed.");

        var node = e.Node;

        if (node.HasAttributes)
       {
            var path = node.Attribute("path").Value;

…

For some reason the path attribute at this point is (only sometimes) incomplete as described above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:07:03+00:00Added an answer on May 30, 2026 at 6:07 am

    As there doesn’t appear to be any answer forthcoming, see above for update.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project for the iPhone that requires accessing a
I am currently working on a project that is accessing a piece of hardware
If I have an array in PHP that is currently null, shouldn't accessing an
The code below correctly returns the XML from the soap sever that I'm accessing.
Currently, PHP would trigger (and log if logging is enabled) E_NOTICE 'errors' when accessing
I'm currently accessing the Ruby TweetStream just fine in regards to the filter method;
For my VFP application, i have a program to check currently who is accessing
Is there a way of accessing the current script's absolute physical path via a
I'm currently developing an app that uses Core Data. I'm using two stores/configurations, one
I've got a drupal site that gets low traffic, but has tons of new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.