- Added types to
toMap
functions (#57) by jodinathan
- Added
Query.matchPhrase
method to support match_phrase query. (#54 by sota1235)
- Added
Query.regexp
method to support regexp query. (#52 by sota1235)
- Added the very basics of
Function score query
toQuery
with the functionfunctionScore
. (#50 by Cronos87)
- Added
docCount
property on aggregations. (#47 by Cronos87). - Added
size
option to search. (#47 by Cronos87).
- Updated dependency, finalizing release.
- Migrated to null safety.
SearchResult.hits
has a separateHit
type, extendingDoc
for backwards compatibility.Client.search
andIndex.search
:- highlighting support with
HighlightOptions
,HighlightField
trackTotalHits
to optionally disable calculating the total hit counting- requested
fields
are returned separately fromsource
- highlighting support with
Query.range
Query.queryString
.Client.bulk
andIndex.bulk
support delete and batch size.
Breaking changes:
Client
methods updated:- every parameter is a named parameter,
- required parameters are marked as such,
search
: removedfetchSource
parameter, use `source instead,clearScroll
was renamed toclearScrollIds
,scroll
'sscroll
parameter renamed toduration
.
- Removed
ConsoleHttpTransport
, useHttpTransport
instead. - Removed
BasicAuth
, usebasicAuthorization
instead. HttpTransport
changed:- Constructor accepts
client
from bothpackage:http
orpackage:http_client
. - Constructor accepts
url
asString
orUri
. - Constructor accepts
authorization
header as a pass-through value. - Closes HTTP client if and only if there was none provided.
- Constructor accepts
Updates:
Client.clearScrollId
for deleting a single scroll id.TransportException
when we've got unexpected status code from ElasticSearch.Client.index(name: 'index-name')
creates a shortcut to access index-based operations.- Minimal test! yay!
- The
type
parameter in the index may be null. (#25 by fabiocarneiro)
- Enabled merging documents with
updateDoc
(#19 by jodinathan).
- Updated code to latest Dart style guides.
Query.prefix
- Handle
'hits': {'total': {'value': 1}}}
in the search response format.
- Fix HTTP transport: preserve original uri's relative path segments.
- Add dynamic
source
param for Client.search() method. This is a replacement for the booleanfetchSource
to allow _source to be a boolean, a string or a list of strings as per the Elasticsearch spec. - Deprecate
fetchSource
param in the Client.search() method. - Support sorting of search results.
- Fixed
_mergeHeader
function. - Using
pedantic
analysis options.
- Upgrade
http_client
dependency.
BasicAuth
option forHttpTransport
.
- Support suggest queries.
- First public version.