0

I pulling list of documents through search results WebPart in SharePoint. I am writing this query and it is working fine path:"http://server-sharep/abc/*" FileExtension:pdf (IsDocument:"True" OR contentclass:"STS_ListItem")

I have created a custom list and attached with the document library and named it DocumentCategories and Attached the category from this custom list to specific documents.

Now the issue is, I can't find DocumentCategories under 'Property filter' so I could use the filter and pull specific documents based on the categories.

However, I have doubled check the custom library DocumentCategories is searchable as I have checked the settings under "General Settings > Advanced Settings".

What do I have to do in order to make custom list DocumentCategories to appear under the filter in Search Result WebParts?

0

Your "DocumentCategories" must be searchable under generic keyword search, in order to use it in the refiner. Find the crawled property for the "DocumentCategories" in the search schema and then create a refinable Managed Property and add this crawled property in the mapping. Use this new managed property in the refiner webpart.

  • I tried exactly same thing but still the query is not returning the result based on that. So The Type:Test,Multi:Multi,Query:Query,Search:Search,Retrieve:Retrieve,Refine:Refine,Sort:-,Safe:-,Mapped Crawled Properties:ows_DocumentCategories – mak May 13 '16 at 20:38
  • So the category i have in DocumentCategories is for example "abc def gh" and my search query is path:"server-sharep/abc*" FileExtension:pdf (IsDocument:"True" OR contentclass:"STS_ListItem") DocumentCategory:abc* – mak May 13 '16 at 20:40
  • Do i need to restart IIS or reset anything? – mak May 13 '16 at 20:48
  • You need to wait until the next incremental or continuous crawl – Rajesh Sitaraman May 13 '16 at 20:49
  • You can also SharePoint Search Query Tool at CodePlex. It is very handy and easy to use utility that will expose all the properties returned from SP Search. When you start the progra, connect to your sharepoint site and type in your query and you will see the results where you can inspect all the different props. sp2013searchtool.codeplex.com – Ahmed Mahmoud May 13 '16 at 21:05
0

So you have not mapped the DocumentCategories to RefinableStringxx??? I guess you should map it to RefinableStringxx (providing that DocumentCategory returns text (data type). Once you do that, you should be able to write your query as follows:

path:"server-sharep/abc*" FileExtension:pdf (IsDocument:"True" OR contentclass:"STS_ListItem") RefinableStringxx:abc -ContentClass=urn:content-class:SPSPeople 

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.