Skip to content

Minor updates and fixes (develop)#472

Merged
guumaster merged 32 commits intomongoosastic:developfrom
talkative:develop
Jun 15, 2019
Merged

Minor updates and fixes (develop)#472
guumaster merged 32 commits intomongoosastic:developfrom
talkative:develop

Conversation

@AxelJunker
Copy link
Copy Markdown

Mostly, this pull request is about the mongoose type "Mixed"

@AxelJunker AxelJunker mentioned this pull request May 24, 2019
3 tasks
it’s not supported in elastic > 6
otherwise arrays are “CoreMongooseArray”, not native js array
@guumaster guumaster merged commit 7b4b4b5 into mongoosastic:develop Jun 15, 2019
@guumaster
Copy link
Copy Markdown
Member

Supercool excellent work!! Infinite thanks @AxelJunker

guumaster added a commit that referenced this pull request Jun 15, 2019
* deps updated. linted

* pin dependencies and remove old npm install from travis ci

* Add docker-Elasticsearch to Travis

* Test fixes (develop) (#469)

* default mongoose number to long, not double

* default string to text

* make generateMapping sync

* expose generateMapping and getCleanTree

* don’t forceIndexRefresh by default

* highlight and suggest are not search options

* expose an error event emitter when bulk indexing

* set fixed dependencies versions

* set mongoose options

* function for deleting docs before & after test

* make tests work with mongoose@5.5.1

.remove() -> .deleteMany()
.insert() -> insertOne()
connect with options

* different types in one index does not work in elastic > 6.x

* rename/include force-index-refresh test

* filtered query not supported anymore, use bool instead

* sorting has to be made on the keyword field

* minor (generateMapping sync)

* use elasticsearch.js@15.2.0 (6.4 API is default, same as Travis)

* Minor updates and fixes (develop) (#472)

* default mongoose number to long, not double

* default string to text

* make generateMapping sync

* expose generateMapping and getCleanTree

* don’t forceIndexRefresh by default

* highlight and suggest are not search options

* expose an error event emitter when bulk indexing

* set fixed dependencies versions

* set mongoose options

* function for deleting docs before & after test

* make tests work with mongoose@5.5.1

.remove() -> .deleteMany()
.insert() -> insertOne()
connect with options

* different types in one index does not work in elastic > 6.x

* rename/include force-index-refresh test

* filtered query not supported anymore, use bool instead

* sorting has to be made on the keyword field

* minor (generateMapping sync)

* use elasticsearch.js@15.2.0 (6.4 API is default, same as Travis)

* remove unnescessary cleanTree object

* do not map mixed fields

* return mapping

* if field is mixed, keep field name, but remove type

so that serialize.js will index the field

* update mixed test

* don’t map mixed fields

but keep them in mongoosastics internal mapping so that they are indexed when passed to serialized

* test mixed all the way

* consistent return of schema object

* minor

* bug fix

* check if elastic is up and running before tests

* add comment

* disable alternative index and type

it’s not supported in elastic > 6

* use .toObject() before serialize

otherwise arrays are “CoreMongooseArray”, not native js array

* Update README.md
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