Return the Field Configuration

GetFieldConfiguration() returns all fields and their current settings as a FieldProxy[]. This is the same shape used by TrySetFieldConfiguration and the HTTP API.

csharp
FieldProxy[] fields = engine.GetFieldConfiguration();

foreach (var field in fields)
{
    Console.WriteLine($"{field.FieldName} ({field.FieldType})" +
        $" words={field.WordMatching} pattern={field.PatternMatching}" +
        $" filterable={field.Filterable}" +
        $" facetable={field.Facetable}" +
        $" sortable={field.Sortable}" +
        $" weight={field.Weight}");
}

To filter by role:

csharp
var searched    = fields.Where(f => f.WordMatching == true || f.PatternMatching == true).ToList();
var filterable  = fields.Where(f => f.Filterable == true).ToList();
var facetable   = fields.Where(f => f.Facetable  == true).ToList();

Changing it on a loaded engine

RequiresReload and RequiresReindex say what a change costs before you apply it: a reload, an Index(), or nothing. See Field.