Page 1 of 1

Can you display the referring page of a file?

Posted: Thu Sep 22, 2011 12:45 am
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

Can you display the referring page of a file?

Posted: Thu Sep 22, 2011 1:51 pm
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.

Can you display the referring page of a file?

Posted: Sun Sep 25, 2011 11:47 pm
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

Can you display the referring page of a file?

Posted: Mon Sep 26, 2011 10:16 pm
by matthew.wall
Worked it out!