Skip to content

Is there a way to add a raw filter string to a Filtered Query? #999

@aochsner

Description

@aochsner

http://stackoverflow.com/questions/26172103/nest-is-there-a-way-to-add-a-raw-filter-string-to-a-filtered-query/26402581

I know I can use QueryRaw and FilterRaw but I want the ability to add a raw filter string to a filtered query. Unfortunately, it looks like FilterDescriptor.Raw is internal. Am I missing something?

The closest I've come is:

var filter = ((ISearchRequest) new SearchDescriptor<object>().FilterRaw("<raw filter here>")).Filter;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions