Similar to my earlier question, I need a way to move certain items to the end of my search results, without using ordering.
I have a checkbox field (currently indexed as a string, containing "1" or "0"). I need the checked items ("1") to be at the bottom of the results.
Normally, it would be possible to do this with ordering, but since I am boosting certain fields, applying ordering operations screws up the result relevancy.
I have a method which adds predicates to my
IQueryable object containing:
queryable.Where(item => item["discontinued"].Equals("1").Boost(1.0f) || item["discontinued"].Equals("0").Boost(4.0f));
I found from my earlier question that you cannot use negative boost values with Azure search, so I instead tried to give a higher boost for the unchecked items than the checked ones. Is this even possible?: to use two different boost values against the same field depending on the value?. My current testing seems to show that this does not work.