Skip to content

Instantly share code, notes, and snippets.

@estruyf
Created January 26, 2015 14:49
Show Gist options
  • Select an option

  • Save estruyf/a5cbf1d5322021285fe4 to your computer and use it in GitHub Desktop.

Select an option

Save estruyf/a5cbf1d5322021285fe4 to your computer and use it in GitHub Desktop.
Value type handling in refiners
// Checks if the value type is known managed properties
a = Srch.ValueInfo.ValueTypeHandler.$2Q(b, d, Srch.ValueInfo.ValueTypeHandler.$k);
// If the propert is unknown, check the managed property suffix (OWSDATE, OWSHTML, ...)
if (Srch.U.n(a)) {
// Retrieve the ows suffix
var f = Srch.ValueInfo.$d(b);
// Retrieve the value type by the suffix
a = Srch.ValueInfo.ValueTypeHandler.$2Q(f, d, Srch.ValueInfo.ValueTypeHandler.$30)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment