Kentico search by classnames -


i have problem with filtering search results classnames. below can find code snippet use, hope has idea , can me.

searchparameters parameters = new searchparameters()         {             searchfor = "support",             searchsort = "##score##",             path = "/%",             classnames = "cms.faq",                             currentculture = "en-us",             defaultculture = cms.helpers.culturehelper.englishculture.ietflanguagetag,             combinewithdefaultculture = false,             checkpermissions = false,             searchinattachments = false,             user = (cms.membership.userinfo)cms.membership.membershipcontext.authenticateduser,             searchindexes = index.indexname,             startingposition = 0,             displayresults = 10,             numberofprocessedresults = 10,             numberofresults = 0,             attachmentwhere = string.empty,             attachmentorderby = string.empty         }; 

i not find documentation on this, suppose class name should return data of type faq, in case returns other data files, news , custom documents.

i tried add classnames = "+cms.faq" or classnames = "##cms.faq##" had no luck :d

thanks,

classnames parameter obsolete , should not used anymore. parameter still there because of backward compatibility, used filter out search attachments when using sql search rocky mentioned. if want filter search results classnames have specify classname righ in searchfor property this: +(apple) +classname:[cms.faq cms.faq] +_culture:([en-us en-us]


Comments

Popular posts from this blog

php - How can an email be returned from Stripe Checkout? -

SQL php on different pages to Insert (mysqli) -

linked list - Get the index of the Node in a LinkedList which contains the given value in java -