Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aochsner opened this issue Oct 16, 2014 · 0 comments
Closed

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

aochsner opened this issue Oct 16, 2014 · 0 comments

Comments

@aochsner
Copy link
Contributor

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;
aochsner added a commit to aochsner/elasticsearch-net that referenced this issue Oct 16, 2014
@gmarz gmarz closed this as completed in 5236728 Oct 17, 2014
gmarz added a commit that referenced this issue Oct 17, 2014
Fixes #999 by making Raw public (instead of internal and similar to Quer...
@gmarz gmarz added New Feature and removed v1.2.0 labels Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants