chewie 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/lib/chewie/interface/bool.rb +2 -1
- data/lib/chewie/interface/full_text.rb +4 -1
- data/lib/chewie/interface/term_level.rb +8 -1
- data/lib/chewie/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e842cc850f6552b47da7f76c533b9a29f503a629fccc6804d9b9ef5467e8593b
|
4
|
+
data.tar.gz: 9d4bc22c86b285e7947ea965559bf524c35b41f6e2cd6084d0a42449fa33475d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fad175dfb3c9449d1a56b92388f489e3e4fc3ad4c552e2944f8e47ad3c080d497e7957c7a2161947cbce9d4a5362f86fa5ecb0e6598b044ebb84ba522436630c
|
7
|
+
data.tar.gz: 7e2c728fb045654620632604226dcdf440ab5aeaeeeac7187ae76055571492819d38b31337ad7c6280e2c3633606645530282e52b80c99538187dc9077d512b4
|
data/README.md
CHANGED
@@ -362,22 +362,22 @@ puts result
|
|
362
362
|
### [Compound Queries](https://www.elastic.co/guide/en/elasticsearch/reference/current/full-text-queries.html)
|
363
363
|
#### [Bool](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html)
|
364
364
|
|
365
|
-
* [filter (#filter_by)](
|
366
|
-
* [should (#should_include)](
|
367
|
-
* [must (#must_include)](
|
368
|
-
* [must_not (#must_not_include)](
|
365
|
+
* [filter (#filter_by)](lib/chewie/interface/bool.rb)
|
366
|
+
* [should (#should_include)](lib/chewie/interface/bool.rb)
|
367
|
+
* [must (#must_include)](lib/chewie/interface/bool.rb)
|
368
|
+
* [must_not (#must_not_include)](lib/chewie/interface/bool.rb)
|
369
369
|
|
370
370
|
### [Term Level Queries](https://www.elastic.co/guide/en/elasticsearch/reference/current/term-level-queries.html)
|
371
371
|
|
372
|
-
* [term (#term)](
|
373
|
-
* [terms (#terms)](
|
374
|
-
* [range (#range)](
|
375
|
-
* [fuzzy (#fuzzy)](
|
372
|
+
* [term (#term)](lib/chewie/interface/term_level.rb)
|
373
|
+
* [terms (#terms)](lib/chewie/interface/term_level.rb)
|
374
|
+
* [range (#range)](lib/chewie/interface/term_level.rb)
|
375
|
+
* [fuzzy (#fuzzy)](lib/chewie/interface/term_level.rb)
|
376
376
|
|
377
377
|
### [Full Text Queries](https://www.elastic.co/guide/en/elasticsearch/reference/current/full-text-queries.html)
|
378
378
|
|
379
|
-
* [match (#match)](
|
380
|
-
* [multi-match (#multimatch)](
|
379
|
+
* [match (#match)](lib/chewie/interface/full_text.rb)
|
380
|
+
* [multi-match (#multimatch)](lib/chewie/interface/full_text.rb)
|
381
381
|
|
382
382
|
## Development
|
383
383
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Chewie
|
2
2
|
module Interface
|
3
3
|
module Bool
|
4
|
-
|
4
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html
|
5
|
+
#
|
5
6
|
# @param attribute [Symbol] Field you wish to search
|
6
7
|
# @param with [Symbol] Specify the term-level query [term, terms, range]
|
7
8
|
# @param combine [Array] Target additional filter values to be combined in the formatted output (optional)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Chewie
|
2
2
|
module Interface
|
3
3
|
module FullText
|
4
|
-
|
4
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html
|
5
|
+
#
|
5
6
|
# @param attribute [Symbol] Field you wish to search
|
6
7
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
7
8
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
@@ -19,6 +20,8 @@ module Chewie
|
|
19
20
|
set_handler(context: context, handler: handler)
|
20
21
|
end
|
21
22
|
|
23
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html
|
24
|
+
#
|
22
25
|
# @param with [Array] A collection of field symbols to match against
|
23
26
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
24
27
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Chewie
|
2
2
|
module Interface
|
3
3
|
module TermLevel
|
4
|
-
|
4
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html
|
5
|
+
#
|
5
6
|
# @param attribute [Symbol] Field you wish to search
|
6
7
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
7
8
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
@@ -18,6 +19,8 @@ module Chewie
|
|
18
19
|
set_handler(context: context, handler: handler)
|
19
20
|
end
|
20
21
|
|
22
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html
|
23
|
+
#
|
21
24
|
# @param attribute [Symbol] Field you wish to search
|
22
25
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
23
26
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
@@ -35,6 +38,8 @@ module Chewie
|
|
35
38
|
set_handler(context: context, handler: handler)
|
36
39
|
end
|
37
40
|
|
41
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
|
42
|
+
#
|
38
43
|
# @param attribute [Symbol] Field you wish to search
|
39
44
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
40
45
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
@@ -52,6 +57,8 @@ module Chewie
|
|
52
57
|
set_handler(context: context, handler: handler)
|
53
58
|
end
|
54
59
|
|
60
|
+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html
|
61
|
+
#
|
55
62
|
# @param attribute [Symbol] Field you wish to search
|
56
63
|
# @param context [Symbol] Desired context the query should appear (see https://www.elastic.co/guide/en/elasticsearch/reference/current/compound-queries.html)
|
57
64
|
# @param clause [Symbol] Specify a nested clause, usually context dependent (optional)
|
data/lib/chewie/version.rb
CHANGED