0

SP2013 standard licence. I am using the search result webpart. Can I filter on some column value? I already filtering on contenttype like this:

 Path:{SiteCollection.URL}  ContentType:NieuwsDetailPagina {searchboxquery}

I would like to add extra filter like columnx:TRUE. Columnx is a boolean column on Contenttype "NieuwsDetailPagina".

1
  • Have you looked into RefinableString? It allows you to map to any site columns, then you can use it within search filters.
    – Aveenav
    Commented Aug 22, 2014 at 14:22

1 Answer 1

1

You can locate the column in the Crawled Properties of the Search Schema settings. Usually it will be named ows_Columnx (based on your example above. In order to Query that column create a new Managed Property mapping the crawled property to your new Managed Property.

Perform a full crawl and the you can search for your field by using the ManagedPropertyName=1 for Boolean field types.

2
  • Can I use it in the search query like this?: Path:{SiteCollection.URL} ManagedPropertyName=1 ContentType:NieuwsDetailPagina {searchboxquery}
    – Ola
    Commented Aug 25, 2014 at 7:54
  • Yes, that's how I would do it. Commented Aug 25, 2014 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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