Custom field type not appearing in the filter list for a query projector

Topics: Writing modules
Feb 11, 2014 at 11:05 PM
I have created a custom field type using this guide https://github.com/OrchardCMS/OrchardDoc/blob/master/Documentation/Creating-a-custom-field-type.markdown and added my custom field to a custom type which works fine.

When I create a query projection and add a new filter, my custom field type does not appear in the content fields list. The other fields appear in the list correctly but not my custom one.

Is there anything extra I have to do to allow my field to be filtered in a query projections?

I've looked at the source of the existing types I need some direction on where I should look. Any help is appreciated
Feb 12, 2014 at 10:38 PM
It appears you need to add a Describe method to the Driver. Adding the following will expose the custom field to the query projector filters.
protected override void Describe(DescribeMembersContext context) {
    context.Member(null, typeof(string), T("Value"), T("The value of the Language field."));
}