Skip to content

Fixed the syntax of QueryRaw as it didn't work #1077

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

Merged
merged 1 commit into from
Dec 5, 2014
Merged

Fixed the syntax of QueryRaw as it didn't work #1077

merged 1 commit into from
Dec 5, 2014

Conversation

anshudutta
Copy link
Contributor

//When I try this
var response = client.Search(func);

//This worked if the definition of func was
Func<SearchDescriptor, SearchDescriptor> func = s => s
.AllTypes()
.From(0)
.Size(5)
.QueryRaw(@"{""match_all"": {} }")
;

//This didn't work if the definition of func was
Func<SearchDescriptor, SearchDescriptor> func = s => s
.AllTypes()
.From(0)
.Size(10)
.QueryRaw(""match_all" : { }")
);

//When I try this 
var response = client.Search(func);

//This worked if the definition of func was
Func<SearchDescriptor<dynamic>, SearchDescriptor<dynamic>> func = s => s
               .AllTypes()
               .From(0)
               .Size(5)
               .QueryRaw(@"{""match_all"": {} }")
               ;

//This didn't work if the definition of func was
            Func<SearchDescriptor<dynamic>, SearchDescriptor<dynamic>> func = s => s
                .AllTypes()
                .From(0)
                .Size(10)
                .QueryRaw("\"match_all\" : { }")
);
@Mpdreamz
Copy link
Member

Mpdreamz commented Dec 2, 2014

Thank you for catching this bug in our docs @anshudutta, highly appreciated!

Mind signing our CLA so that we may pull your bits in? http://www.elasticsearch.org/contributor-agreement/

@anshudutta
Copy link
Contributor Author

Done. Many thanks.

On Wed, Dec 3, 2014 at 12:07 AM, Martijn Laarman [email protected]
wrote:

Thank you for catching this bug in our docs @anshudutta
https://github.com/anshudutta, highly appreciated!

Mind signing our CLA so that we may pull your bits in?
http://www.elasticsearch.org/contributor-agreement/


Reply to this email directly or view it on GitHub
#1077 (comment)
.

Regards
Anshu Dutta

Mpdreamz added a commit that referenced this pull request Dec 5, 2014
Fixed the syntax of QueryRaw as it didn't work
@Mpdreamz Mpdreamz merged commit b6c770f into elastic:develop Dec 5, 2014
@Mpdreamz
Copy link
Member

Mpdreamz commented Dec 5, 2014

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants