Switch branches/tags
Commits on Jan 18, 2018
  1. Fix/query dsl integration (#3050)

    Mpdreamz committed Jan 18, 2018
    * parent id query example now valid when run as integration test
    * remove geo_hash_cell query
    * update unit tests to reflect changes made during integration test runs
    * Change to NotSupportException
    for consistency
    * Convert to Expression bodies
    * rename ParseShape to SetIgnoreMapped
Commits on Jan 17, 2018
  1. Fix/nullable descriptor arguments (#3048)

    Mpdreamz committed Jan 17, 2018
    * Reenabled code standard test that checks valuetype
    arguments on descriptors are nullable
    * generated arguments for enums and DateTimeOffset should be nullable too
    * fixed a whole bunch of'em
    * updated a whole bunch more of them
    * add test for nullable bools having a default value of true
    * added test that catches nullable bool arguments on descriptor have a default value of true
    * fixed failing unit tests
  2. Update UnexpectedElasticsearchClientException.cs (#3047)

    jslicer committed with codebrain Jan 17, 2018
    fixed spelling of "occured" to "occurred".
Commits on Jan 16, 2018
  1. Fix/obsolete and removed (#3044)

    Mpdreamz committed Jan 16, 2018
    * remove unused enum FinalDecision, removed obsolete in 5.x properties from simple query string
    * remove indices query
    * remove template query
    * Span near removed properties
    * remove throttle time from store stats
  2. Fix/ttl timestamp (#3043)

    Mpdreamz committed Jan 16, 2018
    * remove ttl and timestamp from request and responses
    * remove ttl from generated requests
  3. add type to query string query and remove locale and lower case expan… (

    Mpdreamz committed Jan 16, 2018
    * add type to query string query and remove locale and lower case expanded terms
    * fix compilation error in tests
  4. fix #3028 add missing properties to match_query (#3040)

    Mpdreamz committed Jan 16, 2018
  5. Automatically skip parameters already found in _common.json but still… (

    Mpdreamz committed Jan 16, 2018
    * Automatically skip parameters already found in _common.json but still warn about them
    * put extension in Path.Combine
  6. fix #3017 add docvalues_fields to innerhits (#3037)

    Mpdreamz committed Jan 16, 2018
    Needs backport to `5.x`
  7. fix #3019, converter should not nullify know keys in the base diction…

    Mpdreamz committed Jan 16, 2018
    …ary (#3038)
  8. Include time separator in CI prerelease

    russcam committed Jan 16, 2018
    FAKE's SemVerHelper attempts to parse the prerelease as an Int32, which overflows with the inclusion of the full year. Include a T separator for time to prevent SemVerHelper from trying to be too helpful.
  9. Include year in canary timestamp

    russcam committed Jan 16, 2018
Commits on Jan 15, 2018
  1. fix failing delete by query with slice unit test on expected json

    Mpdreamz committed Jan 15, 2018
  2. Split out Time into separate types for Time values and DateMath times (

    russcam committed with Mpdreamz Jan 15, 2018
    * Split out Time into separate types for Time values and DateMath times
    The Time type has historically been used to represent both Elasticsearch's TimeValue and time within Date Math expressions. This is slightly misleading because
    1. TimeValue accepts units from nanos -> seconds
    2. Date Math expressions with time accept units from seconds -> years
    In both cases, Elasticsearch accepts only whole numbers in addition to a unit of measure.
    This commit introduces a new DateMathTime type to represent times within DateMath expressions, with a DateMathTimeUnit enum to represent the valid units for this type. There are implicit conversions from string, TimeSpan and double such that implicit conversion usage in users upgrading from 5.x -> 6.x will not be affected by the change. The constructors that accept string, TimeSpan and double accept fractional numbers to make the type easier to work with, and the fractional number will be converted to the largest whole number and unit that can be represented, with rounding to the nearest second for fractional seconds. An optional rounding argument to determine how to round mid points can be passed to the constructors that accept TimeSpan, double and string.
    The DateMathTime type implements equality and comparison members, comparing the seconds representation. An approximation of seconds is used in the case of years and months, with 365 * seconds in a day for years, and (365 / 12)  * seconds in a day for months, allowing for comparisons between months and years.
    Remove support for units above a day from the Time type.
    Closes #2983
    * Remove unneeded JsonConverter
    Changes following PR review
  3. Correct document _type from cherry-picked forward port

    russcam committed Jan 15, 2018
    Relates a34d1e5
  4. Fix fluent for BulkAliasDescriptor.RemoveIndex() (#3035)

    laurentlbm committed with russcam Jan 15, 2018
    RemoveIndex on BulkAliasDescriptor was not fluent, returning instead the interface IBulkAliasRequest.
  5. ProperyNameJsonConverter and field resolver for propertyname was new'…

    Mpdreamz committed with russcam Jan 15, 2018
    …ing an Inferrer (#3030)
Commits on Jan 14, 2018
  1. Support slice in delete by query (#3014)

    russcam committed Jan 14, 2018
    Closes #2859
  2. Ability to diff assemblies from files, directories, nuget and github (#…

    russcam committed Jan 14, 2018
    This commit adds a build target, diff, that can create a diff output of assemblies from
    1. files
    2. directories
    3. nuget packages
    4. github commits
    It uses Progress/Telerik's JustAssembly command line tool to generate an XML file of the public diffs between two assemblies, with functions implemented to transform XML to markdown and asciidoc. Since JustAssembly installation cannot be easily automated, an exception is thrown when diff is run if the tool is not installed, prompting the user with a link to download.
    When specifying directories or nuget packages, the assemblies within the first path will be paired up with assemblies with the same name in the second path, and a diff will be generated for each pair.
    The diff can output XML, Markdown and Asciidoc, with the latter two implemented as functions that convert the XML to a document structure.
    Add skipdocs argument to be able to skip generating documentation.
  3. Rewrite CustomAttributes on members and rename expicitly implemented …

    russcam committed Jan 14, 2018
    …interfaces (#3031)
    This commit touches the custom attributes of all type members to ensure that the rewritten namespace of types originating from Newtonsoft.Json are reflected in those attributes. Specifically, the main remaining attribute was the compiler generated AsyncStateMachineAttribute on async methods.
    Rename all explicitly implemented interface member names to replace Newtonsoft.Json with Nest.Json. Whilst the original member names do not cause an issue, renaming them here for clarity.
    Remove the Newtonsoft.Json.Dynamic.snk resource from the Nest assembly as it is not required.
    Closes #3024
Commits on Jan 10, 2018
  1. Feature/parent deprecation (#3022)

    Mpdreamz committed Jan 10, 2018
    * clean up global and local overrides concept. Removed .obsolete.json support now handled by
    * skip before rename
    * make sure all parent querystring parameters are marked as deprecated
    * remove parent field mapping
    * update generator for descriptor to include a newline after obsolete for descriptor parameters that are generated
    * Feature/base class codegen (#3025)
    * moved requestparameter patching to its own thing, patch common query parameters seperately and started on generating the base classes for request OIS and fluent
    * cleaned up request generated and moved logic out of it
    * finished cleaning up request genererated cshtml
    * generate common query string params on base descriptor clas
    * generated descriptor arguments now adhere to csharp guidelines and are camel cased
    * centralized up how field types are calculated. RequestParameters rendered fields as IEnumerable<object> or object, since the highlevel generated code now sets the query strings directly this is no longer neccessary
    * Centralized how setters for object initializer classes are generated
    * requests were using DeprecatedInFavor of which was never set, they now use Obsolete
    * use expression getter and setters
    * make cat parameters more descriptive
    * documentation from spec now word wraps around 140 characters
    * moved generation code to seperate static class
    * remove nullable type builder as it the source csharp type itself is nullable now always
    * OCD over generated output spacing
  2. Fixed bad asciidoc - replaced backticks with + for certutil links

    clintongormley committed Jan 10, 2018
  3. Remove monospace formatting inside link text

    russcam committed Jan 10, 2018
    AsciiDocNet incorrectly parses this
  4. pin documentation to 6.1 reference

    russcam committed Jan 10, 2018
  5. Add parent-child relationships to documentation

    russcam committed Jan 10, 2018
Commits on Jan 9, 2018
  1. RequestData url building fix (#3016)

    Mpdreamz committed Jan 9, 2018
    * Update url tester so that rather than removing certain querystring parameters that the tests optionally set we only assert these if they actually appear in the expected url. Also improved assertion messages of existing assertions
    * Expose ElasticsearchUrlFormatter, useful class
    * RequestData was calling CreatePathWithQueryStrings() twice.
    * Sniff was not setting Path on Audit, same for Ping
    * CreatePathWithQueryStrings() was allocation two namevaluecollections
      we can do with just the one.
    * further optimized CreatePathWithQueryString, path never has a querystring portion now that sniff internally uses request parameters too
    * added extra tests that make sure that we can send urls as ids in the path and as querystring values
    * formatting
  2. Fix/source enabled (#3015)

    Mpdreamz committed Jan 9, 2018
    * SourceEnabled() used to take string[] which adheres to the spec but since we also have SourceInclude/Exclude it makes more sense for this parameter to be a bool in the client
    * Generated request parameters value types should be nullable to reflect their absence on the querystring
    * generated request parameters on descriptors that take a value type should also be nullable
    * reran code generation after rebase
  3. Feature/render partial (#3018)

    Mpdreamz committed Jan 9, 2018
    * Generator can now implement request parameters as properties on interface only (partial) this forces the high level client to imlpement partial declared properties on the body explicitly
    * Pathing url parameters happens only once not for each method, can now warn if we configure overrides for params that are not declared on the spec
    * addressed al reported code generation warnings
    * another pass over configured overrides, FieldStats no longer exists as endpoint
    * remove stored fields from manual implemented interface part for ISearchRequest
    * finished XmlDoc on GlobalOverrides.RenderPartial
Commits on Jan 7, 2018
  1. Index geo ip tests was missing a Routing() on the get in ExpectRespon…

    Mpdreamz committed Jan 7, 2018
  2. last remaining instance of unencoded routing url

    Mpdreamz committed Jan 7, 2018
  3. make sure routing keys in tests are url encoded

    Mpdreamz committed Jan 7, 2018
  4. fix failing unit tests now that routing is required on the project indeX

    Mpdreamz committed Jan 7, 2018
  5. make routing required on project index (since it uses parent/childs) …

    Mpdreamz committed Jan 7, 2018
    …and update failing integration tests that were not specifying routing
  6. fixed failing integration tests that were not using routing

    Mpdreamz committed Jan 7, 2018
  7. fix failing geo centroid unit test incorrectly declaring expected que…

    Mpdreamz committed Jan 7, 2018
    …ry json portion