Can you display the referring page of a file?

Post Reply
matthew.wall
Posts: 3
Joined: Wed Sep 21, 2011 10:37 pm

Can you display the referring page of a file?

Post by matthew.wall »

Hi all,

I am hoping someone can help me with regards to the texis search results.

When a PDF or DOC file is indexed, what we would like to do is show in the search results the page(s) where this file is located on the site. It sounds quiet straightforward however I am struggling to find out if the search appliance stores this information and if so, what the XML element and/or XPATH actually is.

So ideally the search result will be:

[PDF icon] [Title]
[Link to PDF file on website]
Referer: [XXXX Link of page where PDF resides XXXX]


Our system as follows:
Version: Search Appliance SBE Server Version 5.01.1233959086 20090206 (i686-unknown-linux2.4.9-64-32)
Scripts Version: 7.0.3


Can anyone help us?

Thank you.

Matt
User avatar
John
Site Admin
Posts: 2592
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Can you display the referring page of a file?

Post by John »

The parents or referrer are stored. Each PDF could be referenced by multiple URLs, and the <UrlParents> element has the URL that points to the full list of referring urls.
John Turnbull
Thunderstone Software
matthew.wall
Posts: 3
Joined: Wed Sep 21, 2011 10:37 pm

Can you display the referring page of a file?

Post by matthew.wall »

Hi John,

Thank you for your advice.

Can you show me an example of the XML output with the <UrlParents> tag? I'd like to understand the structure to code up our final output.

Is there a special setting I need to update to return this tag or does it automatically come as default output?

Thanks,

Matt
matthew.wall
Posts: 3
Joined: Wed Sep 21, 2011 10:37 pm

Can you display the referring page of a file?

Post by matthew.wall »

Worked it out!
Post Reply