Forum Discussion
Wmatsamangwa
May 03, 2023Copper Contributor
Run two RefinableString on Sharepoint Online
During the construction of a page, I wanted to move up a document using two RefinableString: ContentTypeId:0x01010092B17010871B134E81631D4EC721B719* RefinableString208:"07 December 2022" RefinableStr...
kerry365
May 09, 2023Copper Contributor
It seems that when you are trying to merge the two RefinableString filters in your query, you are not getting any data. However, when you use the two filters separately with the ContentType filter, you are getting the desired result.
To use multiple RefinableString filters in the same query, you can try using the "AND" operator between the two filters. For example, your query can look like:
ContentTypeId:0x01010092B17010871B134E81631D4EC721B719* RefinableString208:"07 December 2022" AND RefinableString35:"Support"
This should return the documents that have both "07 December 2022" in RefinableString208 and "Support" in RefinableString35.
If this doesn't work, you can try using the KQL query language to construct more complex queries. You can find more information on using KQL for SharePoint search on the Microsoft documentation website.
To use multiple RefinableString filters in the same query, you can try using the "AND" operator between the two filters. For example, your query can look like:
ContentTypeId:0x01010092B17010871B134E81631D4EC721B719* RefinableString208:"07 December 2022" AND RefinableString35:"Support"
This should return the documents that have both "07 December 2022" in RefinableString208 and "Support" in RefinableString35.
If this doesn't work, you can try using the KQL query language to construct more complex queries. You can find more information on using KQL for SharePoint search on the Microsoft documentation website.