Search against URL

Hello Guys,

I need to retrieve the information about particular result by its URL address.

I use “scope” parameter (I cannot use API UI as I do need to get the clickTrackingURL; I guess meta_u & meta_v also won’t help as I need to pass whole URL path) and I am simply requesting FB results data set.

All is fine until there is a comma sign present in the URL value. A part of exemplary URL substring: “business/transient-occupancy-tax-tot,-tourism-improvement-district-tid-fee,-and-moscone-expansion”. As per the Url Scope - Funnelback Documentation - Version 15.10.0 I can confirm that FB works as expected:

  • comma signs suggest that there is a list of strings
  • dash signs signal the exclude patterns

My question is if there is any way to avoid that expected behaviour (to push and process the URL with comma signs as scope paramater) or maybe is there any other clever way of doing that?

In terms of scope parameter solution things I’ve checked were:

  • encoding the comma sings using %2C and %B4 references,
  • populating additionalParameters object using a hook script

but without any success.

Many thanks,
Mirek

You should be able to use the xscope parameter to achieve this.

Add the xscope parameter to your query string and set the value to the URL you want to retrieve.

Note: the URL needs to match the URL as indexed by Funnelback.

Thanks Peter.

I tried with the xscope previously but just realized that as opposed to the scope a protocol has to be present in the value.