0

I have a Search Results Web Part (SRWP) and there are few Pages which are based on Content Type, that content type contains a field "Visibility". There is a custom web part which searches for this content type pages and ignores the one's having Visibility set to false.

But since SRWP don't know about this field, it still shows up the one's having this field set to false.

Is there a way to customize SRWP to not show Pages where this custom field is set to false?

Or is there a way to completely ignore this content type in SRWP (since we have a separate page for searching these content types)?

0

You should be able to use the "Append text to Query" property on the Search Core Results webpart:

  1. Search Core Results web part
  2. Search Core Results Action Links
  3. Results Query Options
  4. Append Text to Query

Try to append something like NOT YOURPROPERTY:1

Hopefully this will give you all pages without your property, or with your property set to 0 (false)

http://maxderungs.wordpress.com/2012/05/26/using-append-text-to-query-in-search-core-results/

  • Do I need to create Managed Property first ? Also, can you please paste the XML/XSLT generated after setting the Append text to Query property.. I can't see the properties in UI, but have to work on XML/XSLT.. Or Web Part declaration.. – Arsalan Adam Khatri Mar 18 '14 at 10:08
  • Is AppendedQuery="" the property? – Arsalan Adam Khatri Mar 18 '14 at 10:09
  • Could be, I do not have an environment at hand to configure this I'm afraid – Robert Lindgren Mar 18 '14 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.