Skip to content

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