Facet labels

We have groupings of sites within our search which are displayed beneath each of the search results, for example see here: http://search.ntu.ac.uk/s/search.html?query=policies&collection=website&form=simple&profile=_default

 

The first item on the results for "policies" shows a green box with Future Students next to it.

 

We are trying to work out how to change the wording of this? I've tried changing the Faceted Navigation - Config file but this doesn't change the label.

 

Any help greatly appreciated

Are you sure the value of this text is coming from your Faceted Navigation? If so, have you also run a reindex of your collection?

Hi jennypallet -

 

If you're concerned about the label next to the green box at the URL you've supplied, editing the faceted navigation file will not have any effect.

 

Looking at the JSON output for that search result, it appears that the value is coming directly from metadata associated with that URL (note metadata field 'R', below):

results: [
{
rank: 1,
score: 1000,
title: "Policies ",
collection: "website",
component: 0,
liveUrl: "http://www.ntu.ac.uk/about_ntu/policies/index.html",
summary: "As an educational provider which strives to be transparent in its decision-making, NTU is governed by a series of policies. ... In this section you can find details of some of the policies by which the University is governed.",
cacheUrl: "/search/cache.cgi?collection=website&doc=http%2Fwww.ntu.ac.uk%2Fabout_ntu%2Fpolicies%2Findex.html.pan.txt&off=0&len=-1&url=http%3A%2F%2Fwww.ntu.ac.uk%2Fabout_ntu%2Fpolicies%2Findex.html",
date: null,
fileSize: 16757,
fileType: "html",
tier: 1,
docNum: 1749,
exploreLink: null,
kmFromOrigin: null,
metaData: {
T: "future-students",
c: "NTU is governed by a series of policies, created for staff and students to use as guidance of conduct during their relationship with the University",
B: "<a href="http://www.ntu.ac.uk/">ntu</a> > <a href="http://www.ntu.ac.uk/about_ntu/index.html">about ntu</a> > <strong>policies</strong>",
R: "Future Students",
C: "#9acb3c"
},
tags: [ ],
quickLinks: null,
displayUrl: "http://www.ntu.ac.uk/about_ntu/policies/index.html",
clickTrackingUrl: "/search/click.cgi?rank=1&collection=website&url=http%3A%2F%2Fwww.ntu.ac.uk%2Fabout_ntu%2Fpolicies%2Findex.html&index_url=http%3A%2F%2Fwww.ntu.ac.uk%2Fabout_ntu%2Fpolicies%2Findex.html&auth=WzW1iO0DuTHosW%2FVHXhD0Q&query=policies&profile=_default",
explain: null,
indexUrl: "http://www.ntu.ac.uk/about_ntu/policies/index.html",
customData: { }
},

There are three places you might want to investigate the issue further:

 

1. metamap.cfg (determines which HTML meta tag is mapped to 'R' (and subsequently appearing in the data model on a query response)

2. simple.ftl (determines whether or not to display the value mapped to 'R' (if it exists)

3. external_metadata.cfg - as the value does not appear to exist in the source of http://www.ntu.ac.uk/about_ntu/policies/index.html, it's possible that Funnelback has been configured to augment this URL with metadata values prior to indexing.

Hi gordongrace

 

Thanks for your help!

 

metamap.cfg says r,0,agls.audience

simple.ftl says  <span class="result-type-text">${s.result.metaData.R}</span>

 

I can't seem to find an external_metadata.cfg? Where would this be?

 

Thanks

Jenny

external_metadata.cfg should be visible via the Admin UI (Administer > Browse Collection Configuration Files > external_metadata.cfg).

 

It's also possible that you've got a custom filter in the mix, injecting metadata values at gather time.  Viewing the Funnelback-cached copy of the document in question (see the value of 'cachedUrl', above), and comparing it to your live copy, would confirm this theory.