Do site column custom choice fields work in query rules?

Copper Contributor

I'm trying to sort search results by the following:

 

If search term is in the file's Title, move to top.

If search term is in PlaybookCategoryOWSCHCM (Custom choice field. Also a site column.  I have it mapped to a crawled property, and I've made it queryable/searchable and checked 'Allow multiple values').

 

All other results should be below those. The query rule is set to:

 

((*{searchTerms}* ContentTypeId<>png ContentTypeId<>jpg ContentTypeId<>gif ContentTypeId<>pdf Path:https://pcec.sharepoint.com/sites/PlaybookV2Test/SitePages/

-ContentClass=urn:content-class:SPSPeople

XRANK(cb=1.00 stdb=1.00) Title: {searchTerms})

XRANK(cb=0.90 stdb=0.90) PlaybookCategoryOWSCHCM: {searchTerms})

 

This doesn't seem to be working though. The Title matches are on top, which is good, but results with the search term in only the document body are being returned on top of results that have the term in the custom field.  I'm sure I'm doing something wrong or misunderstanding something, anyone have any idea?

 

Thanks.

1 Reply

@Perry Armiras Have You created/saved the items after you mapped the column to a crawled property? My experience is that if You map to a Crawled Property after the items are created they wont be indexed/crawled.

 

Regards, Magnus