SaaS CMS has officially launched! Learn more now.

Search. filtering

Vote:
 

I have a problem with filtering:

When I try to call from filter some method from my page search resul is null.

Example:

            if (request.SomeValue!= 0)
            {
                   client.Filter(x => x.CalculateSomeValue().Match(request.SomeValue));
            }

            return client.GetContentResult();

 

SymptomsAsRated

without this filter I can get a mach values.

#80052
Jan 14, 2014 13:48
Vote:
 

Hi,

Have you added "CalculateSomeValue" to the conventions and reindexed?

(Iniitializable module or Global.asax):

SearchClient.Instance.Conventions.ForInstancesOf<T>().IncludeField(x => x.CalculateSomeValue())

/Henrik

#80187
Jan 16, 2014 11:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.