SHARE
TWEET

Untitled

a guest Jun 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var makeUpperCase = "Land Rover";
  2.      
  3. exports.list_of_all_the_colour_seo_crawl_path_links = function(makeUpperCase, solrdevcfsclient, callback) {
  4.   var seoCrawlPathLinksColourQuery = solrdevcfsclient.createQuery()
  5.     .q("*:*")
  6.     .start(0)
  7.     .rows(1)
  8.     .matchFilter("ManufacturerName",`${makeUpperCase}`)
  9.  
  10.     .matchFilter("NewOrUsed", "Used")
  11.     .facet({
  12.       field:"GenericColour",
  13.       mincount:"1"
  14.     });
  15.   solrdevcfsclient.search(seoCrawlPathLinksColourQuery,function(err,obj) {
  16.     if(err) {
  17.       callback(err,null);
  18.     }
  19.     else {
  20.       callback(null, obj.facet_counts.facet_fields);
  21.     }
  22.   });
  23. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top