Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Including fields problem

Vote:
 

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

#155414
Edited, Sep 16, 2016 9:57
* 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.