Gravatar for sheerahinkey@ccimail.com

Question by sheerahinkey, Mar 20, 2015 4:35 PM

IQueryable.Filter not working

I have an IQueryable to my index, but when I try to sort it, for some reason this comparison fails.

queryable = queryable.Filter(i => i.PostedDate.Year == options.MonthRefinement.Year &&
                                  i.PostedDate.Month == options.MonthRefinement.Month);

I have debugged and found that the first item in the queryable should fulfill this condition, though after this filter the queryable is empty

Thanks for the help

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Mar 20, 2015 4:51 PM

  1. What is the code of your PostedDate.Year property?
  2. Can you copy your Coveo.SearchProvider.config <coveoQueryFieldPipeline> element and its content here please. If too large for a comment, edit your original question.

Thanks

Ask a question