I have a Coveo search view I've customized to show content based on the page you're on matching to whether that value is in a multilist field in Sitecore. The server environment is on-prem CES 7 free version, using version 222 of the Coveo for Sitecore and associated API/CES/etc.
This is my query header:
aq:((@syssource==("Coveo_web_index") NOT @ftemplateid72783==("adb6ca4f-03ef-4f47-b9ac-9ce2ba53ff97","fe5dd826-48c6-436d-b87a-7c4210c7413b"))) (@fhaslayout72783 == "1" AND @fz95xpath72783 == "6377c5571646415ab4922f0f02830104" AND @falltemplates72783 == "9b610063e99f40b6afd5402f5cfaf2d2") (@fcommittees72783 == "1c631b4a5c0342f996d56bd7fb6ed81a") cq:(@fz95xlanguage72783=="en" @fz95xlatestversion72783=="1")
This query returns no results. I went into the Coveo console and found one of the documents that's supposed to be in this result set, so I know it's in the specified index. The item has no security on it. I looked up the fields that are specified in the query:
@ftemplateid72783 - ca328a29-fbe3-41fc-afc0-dbf8602823e8 @fhaslayout72783 - 1 @fz95xpath72783 - 11111111111111111111111111111111;0de95ae441ab4d019eb067441b7c2450;4c5e4cfbe30b446e917024609ce91722;4a7bb7ee89fb4e02896bfb4e27d1ba57;6377c5571646415ab4922f0f02830104;777fdec3a8da45759797983b9f77f49c;f7e17f6a646d4bc68b6a4f1abb3fdb0c;8e30e4b87e2b405eb7d53922c6c9318d @falltemplates72783 - ca328a29fbe341fcafc0dbf8602823e8;9b610063e99f40b6afd5402f5cfaf2d2 @fcommittees72783 - 897ad68518d1427c81d5070dfef1869a;1c631b4a5c0342f996d56bd7fb6ed81a @fz95xlanguage72783 - en @fz95xlatestversion72783 - 1
So it looks like the content matches the criteria, which leaves me perplexed as to why it's not working right. The folks using the system have said if only one item is selected in the list, it appears to work fine, so is there a different syntax in the
buildingQuery statement that I need other than
args.queryBuilder.advancedExpression.add('@Model.ToCoveoFieldName("Committees") == "' + pageId + '"');? I was going with that because it worked for the path and "all templates" parameters.