Commit Graph

20 Commits

Author SHA1 Message Date
Andrew Martin
b488c45217 add tests for compression 2017-12-05 14:14:30 -05:00
Andrew Martin
296f164df5 Support analyzer with custom tokenizer, only ngram for now. Also, add a function for defining index settings when the index is created since the analysis setting cannot be updated dynamically without closing the index. 2017-10-10 09:24:19 -04:00
Chris Allen
8192af8619 Merge pull request #203 from andrewthad/total_fields_limit
added maximum mapping size
2017-08-30 17:21:58 -05:00
Chris Allen
ac096ce023 Merge pull request #201 from andrewthad/bulk_create_encoding
bulk create encoding
2017-08-30 17:21:51 -05:00
Chris Allen
a49fd8e355 Merge pull request #200 from andrewthad/delete_alias
add function for deleting alias
2017-08-30 17:21:43 -05:00
Andrew Martin
6e8081751b add test for deleting alias 2017-08-23 16:01:22 -04:00
Andrew Martin
2a44ce463e add test for bulk create encoding 2017-08-23 15:37:42 -04:00
Andrew Martin
f5129507d9 add test for setting mapping fields limit 2017-08-23 14:58:32 -04:00
Chris Allen
560a55ab7f Merge pull request #183 from 23Skidoo/ghc-8.2
Bump dependencies to support GHC 8.2
2017-07-17 11:49:23 -05:00
Mikhail Glushenkov
57f18064bf
Silence a GHC 8.2 warning.
The warnings were about NoMonoLocalBinds making type inference
fragile:

tests/V1/tests.hs:1876:17: warning: [-Wsimplifiable-class-constraints]
    • The constraint ‘SOP.All SOP.SListI (SOP.GCode a)’
        matches an instance declaration
      instance forall k (f :: k -> Constraint) (xs :: [k]).
               (Generics.SOP.Constraint.AllF f xs, SOP.SListI xs) =>
               SOP.All f xs
        -- Defined in ‘Generics.SOP.Constraint’
      This makes type inference for inner bindings fragile;
        either use MonoLocalBinds, or simplify it using the instance
    • In the type signature:
        sopArbitrary :: forall a.
                        (Generic a,
                         SOP.GTo a,
                         SOP.All SOP.SListI (SOP.GCode a),
                         SOP.All2 Arbitrary (SOP.GCode a)) =>
                        Gen a
2017-05-22 20:06:52 +01:00
Josh Berman
a3784fab7d add tests for "tiebreaker" as requested in #172 2017-05-17 08:11:15 +03:00
Josh Berman
f535e7e99d Add support for 'Phrase Suggester' (V5)
Adds the ability to attach a 'suggester' to a query.

A few notes:
* This commit is only V5. I hope to port it to V1 as well.
* Only one suggestion request / response is supported per-query.
* Suggestions are only supported on the '_search' endpoint (not the
'_suggest' endpoint.
2017-04-19 20:21:14 +03:00
Josh Berman
a6d1114103 add 'Suggest' types with to/from JSON instances and tests 2017-04-18 21:41:42 +03:00
Josh Berman
fc6fe99a68 Add support for template queries 2017-04-18 16:42:32 +03:00
David Smith
f4243f4750 fixed stats agg test 2017-03-23 08:34:17 +00:00
David Smith
b547b18f33 add stats aggregation 2017-03-22 17:10:11 +00:00
Michael Xavier
9f75c4e7e5 First stab at removing doctests
This is for #173

Not sure how to handle all the exposition removed from the
README. Maybe I should leave it? It doesn't really fit that neatly
into examples because a lot of the coode is just introducing data
types and linking off to ES docs.
2017-02-10 15:21:14 -08:00
Josh Berman
576e25dfb3 more specific sub-agg test; updated plain stack.yaml 2017-01-30 12:05:29 +02:00
Josh Berman
79d4eda49f failing sub-aggs test 2017-01-30 10:12:49 +02:00
Josh Berman
c0e1852502 Both V1 and V5 modules and tests
A new module structure for both V1 and V5, and seperate test suites.
Also added a new cabal flag for travis testing.
2016-12-04 15:53:06 +02:00