Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Including fields problem

$
0
0

Hello

What types are supported by the client conventions IncludeField method?
I have the following(example code):

class InitModule
{
  private readonly Injected _client;
  void Initialize(InitializationEngine context)
  {
    _client.Service.Conventions.ForInstancesOf()
      .IncludeField(x => x.Field1.Select(y => y.StringValue));
  }
}
class Search
{
  private readonly Injected _client;
  void Search()
  {
    var res = _client.Service.Search()
      .Filter(x => x.Field1.Select(y => y.StringValue)
        .In(ArrayOfStrings)).GetResult()
  }
}

Field1 is a list of complex types with a string property. I want to filter on the list of string property values.
Should this work? It is supported?

/Peter


Viewing all articles
Browse latest Browse all 6894

Trending Articles