Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New query types, sorting, unit tests, fix issues #4

Merged
merged 63 commits into from Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c7d2909
Merge pull request #42 from KyKoPho/master
vrcmarcos Sep 19, 2020
369cf32
Fix version
Sep 19, 2020
84e6f76
Update Readme and Makefile
Sep 19, 2020
675105b
Adhere to ignore NotFound 404 on get and delete
joosterman Nov 3, 2020
062d615
Bump patch version
joosterman Nov 3, 2020
cbf604f
Merge pull request #44 from joosterman/ignore-404
vrcmarcos Nov 22, 2020
8b7888f
Update 1.6.0 Changelog
vrcmarcos Nov 22, 2020
15cd0c6
Fix CRLF in files and Twine upload
vrcmarcos Nov 22, 2020
affbc4c
Add must to query type
cuent Dec 2, 2020
deb8c3b
add match all query type
cuent Dec 2, 2020
e2e47f9
Merge pull request #47 from cuent/patch-1
vrcmarcos Dec 3, 2020
cecd02a
Merge pull request #48 from cuent/patch-2
vrcmarcos Dec 3, 2020
99a3138
Update Readme and create v1.6.2
vrcmarcos Dec 7, 2020
a3301c0
Fixed count not working with empty doc_type list
Dec 16, 2020
4919748
Added a doc_type test to count
Dec 16, 2020
f91029f
Merge pull request #49 from meshuamam/fix-count-for-empty-doc-types
vrcmarcos Dec 19, 2020
23530b5
allow 'match_all' queries in FakeSearch
jankislinger Dec 29, 2020
f897cca
Query using nested attributes
jankislinger Dec 29, 2020
7c8efed
add shards skipped to search and count
philtweir Dec 29, 2020
90d5135
Merge pull request #56 from flaxandteal/feature/skipped-shards
vrcmarcos Dec 31, 2020
0b54228
Merge pull request #54 from jankislinger/match-all-query
vrcmarcos Dec 31, 2020
9651e8d
Merge pull request #55 from jankislinger/query-nested-data
vrcmarcos Dec 31, 2020
fe42814
filter using range
jankislinger Dec 30, 2020
0630dc6
use search size
jankislinger Jan 4, 2021
b7f919c
add simple mock for aggregated results (buckets)
jankislinger Jan 5, 2021
7789a34
fix failing tests
jankislinger Jan 6, 2021
34ea02b
remove elasticsearch_dsl dependency
jankislinger Jan 6, 2021
45ef73a
install test requirements in travis
jankislinger Jan 6, 2021
edef5d3
drop version requirement for tox
jankislinger Jan 6, 2021
f8dd996
add parameterized to tox.ini
jankislinger Jan 6, 2021
6c2b408
use dateutil to support py3.6
jankislinger Jan 6, 2021
02e31ed
Merge pull request #57 from jankislinger/new-features
vrcmarcos Jan 10, 2021
c77f825
adding SHOULD and MINIMUM_SHOULD_MATCH to QueryType
lunarie16 Jan 16, 2021
2b951c3
Merge pull request #62 from lunarie16/should-query
vrcmarcos Jan 17, 2021
b24e506
Upgrading to Python 3.8
vrcmarcos Jan 17, 2021
68050ee
Bump to 1.7.0
vrcmarcos Jan 17, 2021
83e25ca
Update README.md
vrcmarcos Jan 17, 2021
0c192b5
Add multi_match
carlosgalvez-tiendeo Jan 20, 2021
fb4f6ad
Add msearch
carlosgalvez-tiendeo Jan 21, 2021
2ece678
Merge pull request #63 from carlosgalvez-tiendeo/master
vrcmarcos Jan 21, 2021
70ecaa6
Add mget
carlosgalvez-tiendeo Feb 1, 2021
c66844b
Add compatibility with old versions of elastic
carlosgalvez-tiendeo Feb 1, 2021
42d650e
Merge branch 'master' of github.com:vrcmarcos/elasticmock
carlosgalvez-tiendeo Feb 1, 2021
462527e
Remove vscode settings
carlosgalvez-tiendeo Feb 1, 2021
32b724d
add vstudio to gitignore
carlosgalvez-tiendeo Feb 1, 2021
ff6fda3
Add create and update to bulk API
fenimore Feb 2, 2021
37b16f7
WIP add delete
fenimore Feb 3, 2021
229a3eb
Add delete
fenimore Feb 4, 2021
9a60a0a
Merge branch 'update-bulk-wip' into update-bulk
fenimore Feb 4, 2021
ab4d2f5
Add should for bool search query
fenimore Feb 4, 2021
842f8e0
Update Search API return result
fenimore Feb 4, 2021
02fab89
Remove boosting for fields
carlosgalvez-tiendeo Feb 8, 2021
49cfa8d
Fix multi-value fields
carlosgalvez-tiendeo Feb 24, 2021
72288a1
Merge pull request #66 from fenimore/update-bulk
vrcmarcos Mar 2, 2021
ae8f394
Merge pull request #67 from fenimore/add-search-condition-should
vrcmarcos Mar 2, 2021
c10cb2d
Merge pull request #68 from fenimore/little-update-7.10
vrcmarcos Mar 2, 2021
3a5f7c5
Merge branch 'master' of github.com:vrcmarcos/elasticmock
carlosgalvez-tiendeo Mar 2, 2021
c8aa31d
Allows in the bulk method to indicate the index only in the signature
carlosgalvez-tiendeo Mar 2, 2021
fe382af
Merge pull request #64 from carlosgalvez-tiendeo/master
vrcmarcos Mar 2, 2021
efa6b1b
Bump to 1.8.0
vrcmarcos Mar 6, 2021
42c7711
Merge branch 'master' of https://github.com/vrcmarcos/elasticmock
Mar 22, 2021
daf0142
testing elasticsearch, new query types, sorting, unit tests,
Mar 22, 2021
4bde09a
HSS-191954 fix makefile, setup version
Mar 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

# Created by https://www.gitignore.io/api/intellij,linux,osx,pycharm,python

# Custom
bin/
share/
pyvenv.cfg

### Visual Studio ###
.vscode/

### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ELASTICMOCK_VERSION='2.0'
ELASTICMOCK_VERSION='2.2.0'

install:
pip install -r requirements.txt
Expand All @@ -14,7 +14,11 @@ upload: create_dist
twine upload dist/*
git push

create_dist: create_dist_commit update_pip
create_dist: create_dist_no_commit update_pip
rm -rf dist
python3 setup.py sdist

create_dist_no_commit: update_pip
rm -rf dist
python3 setup.py sdist

Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,31 @@ python setup.py test

## Changelog

#### 1.8.0:
- [Add multi_match](https://github.com/vrcmarcos/elasticmock/pull/63) (Thanks [@carlosgalvez-tiendeo](https://github.com/carlosgalvez-tiendeo))
- [Add mget](https://github.com/vrcmarcos/elasticmock/pull/64) (Thanks [@carlosgalvez-tiendeo](https://github.com/carlosgalvez-tiendeo))
- [Add create, update, and delete to bulk API](https://github.com/vrcmarcos/elasticmock/pull/65) (Thanks [@fenimore](https://github.com/fenimore))
- [Add Should to bool Query](https://github.com/vrcmarcos/elasticmock/pull/67) (Thanks [@fenimore](https://github.com/fenimore))
- [Update Search API return result](https://github.com/vrcmarcos/elasticmock/pull/68) (Thanks [@fenimore](https://github.com/fenimore))

#### 1.7.0:
- [Add shards skipped to search and count](https://github.com/vrcmarcos/elasticmock/pull/56) (Thanks [@philtweir](https://github.com/philtweir))
- [Allow 'match_all' queries in FakeSearch](https://github.com/vrcmarcos/elasticmock/pull/54) (Thanks [@jankislinger](https://github.com/jankislinger))
- [Query using nested attributes](https://github.com/vrcmarcos/elasticmock/pull/55) (Thanks [@jankislinger](https://github.com/jankislinger))
- [New features: range, size, aggregations](https://github.com/vrcmarcos/elasticmock/pull/57) (Thanks [@jankislinger](https://github.com/jankislinger))
- [Adding "should" and "minimum_should_match" to QueryType](https://github.com/vrcmarcos/elasticmock/pull/62) (Thanks [@lunarie16](https://github.com/lunarie16))

#### 1.6.2:
- [Add must to query type](https://github.com/vrcmarcos/elasticmock/pull/47) (Thanks [@cuent](https://github.com/cuent))
- [Add match all query type](https://github.com/vrcmarcos/elasticmock/pull/48) (Thanks [@cuent](https://github.com/cuent))

#### 1.6.1:
- Fix Twine README.md

#### 1.6.0:
- [Implements several basic search types](https://github.com/vrcmarcos/elasticmock/pull/42) (Thanks [@KyKoPho](https://github.com/KyKoPho))
- [Allow ignoring of missing documents (404) for get and delete](https://github.com/vrcmarcos/elasticmock/pull/44) (Thanks [@joosterman](https://github.com/joosterman))

#### 1.5.1:
- [Fix tests for es > 7](https://github.com/vrcmarcos/elasticmock/pull/38) (Thanks [@chesstrian](https://github.com/chesstrian))

Expand Down
Loading