- Eliminated babel dependencies as well as gulp
- Updated dependencies
- Enabled support Elasticsearch v7 and above (not backwards compatible)
- When creating a new index, the mapping is provided without the type wrapper
- When mapper is initialized, update mapping no longer occurs if index already exists
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Added support for Elasticsearch 6.x in the
QueryBuilder
- Updated dependencies
- Tightened up validation for
float
anddouble
values
- Updated
es
dependency with tightened request body handling
- Fixed issue where default export on index
- Adjusted support for
string
types to includekeyword
andtext
types
- Updated
es
dependency for Elasticsearch 6.x support
- Adjusted module loader for simplicity
- Moved to ESNext with Babel transpile
- Updated Node version dependencies for Travis CI
- Fixed mapper
initalize
function to support deep cloning of options
- Fixed bug in QueryBuilder where
mandatory[missing]
filter was not working because of ElasticSearchv5
update
- Fixed bug where
filtered
query is replaced bybool
query in ElasticSearchv5
and higher
- Added support for
node-es
v0.6
and higher as well as ElasticSearchv5
and higher
- Fixed defect where fields within a schema that type
object
did not properly support model validation
- Added QueryBuilder so that
mongoose-middleware
style query string syntax can be parsed into an object elasticsearch can understand.
- Fixed bug where decorators to the mapping were rejected by versions of Elasticsearch greater than
v2
- Updated
es
module dependency - Adjusted module to utilize scan and scroll in conjunction with bulk delete commandsto delete by query as the functionality has been deprecated in Elasticsearch
- Fixed bug where sub-documents were not properly validated and cloned prior to sending to Elasticsearch
- Introduced Promise capability on all asynchronous operations
- Switched to
eslint
fromjshint
- Modified signature of the callback for
#create
on instances ofMapper
- the result supplied to the callback or resolved from the Promise is a single value of a model - if the primary identifier is generated by ES, the value of that identifier will be supplied as_id
for the model object returned - Modified signature of the callback for
#bulkCreate
on instances ofMapper
- the result supplied to the callback or resolved from the Promise is a single array of documents - if the primary identifier is generated by ES, the value of that identifier will be supplied as_id
for each model object returned - Added events for
identity
,summary
andversion
with documentation for use
- Added contributor @rmomii
- Adjusted behavior so that fields that any fields that are not specified in the mapping are not returned by unless
dynamic
is explicitly set tofalse
in the mapping
- Added Mapper#fieldExists to provide an easy way to verify a field exists within a mapping
- Added ability for Mapper#delete to remove documents based on a query parameter
- Fixed issue where string validation failed on types that can be safely cast as a string
- Added ability to specify source filtering when calling
get
andbulkGet
methods
- Fixed an issue where number types formatted as strings were incorrectly failing validation
- Fixed an issue where on search, if fields were used, property coerceion of property types worked incorrectly
- Fixed an issue where the required check for date type fields failed
- Fixed issue where
new Date().toString()
failed date validation
- Fixed issue with boolean type recognition
- Fixed issue where fields that were array values were improperly converted to a string type during coercion
- Now allowing Mapper#update to skip
required
field validation when supplying a partial document
- Fixed issue where string field types failed when validating arrays of strings
- Adding additional summary data as callback argument for
delete
andbulkDelete
- Fixed issue where certain field types that contain the value
null
caused an unhandled exception
- Added Mapper#analyzedFields
- Added Mapper#verifyConnection
- Added Mapper#bulkCreate
- Added Mapper#bulkDelete
- Added Mapper#bulkGet
- Added Mapper#bulkUpdate
- Added Mapper#bulkUpsert
- Added Mapper#search
- Added coveralls.io support
- Renamed Schema to Mapper to better reflect data access pattern used
- Added additional documentation for usage of module
- Added Mapper#create
- Added Mapper#delete
- Added Mapper#get
- Added Mapper#parse
- Added Mapper#update
- Added Mapper#upsert
- Initial version of module that supports Mapping validation