README.md in nazrin-2.4.0 vs README.md in nazrin-2.5.0

- old
+ new

@@ -49,10 +49,14 @@ # You can override settings searchable_configure do |config| config.search_endpoint = 'http://example.com/override-search-endpoint' config.document_endpoint = 'http://example.com/override-document-endpoint' + + # If you set domain_name, CloudSearch data using index_fields configured for the search domain is loaded, not a database. + # So you can use nazrin for plain object + config.domain_name = 'my-cloudsearch-domain-name' end searchable do fields [:content] field(:created_at) { created_at.utc.iso8601 } @@ -63,11 +67,14 @@ after_destroy :delete_from_index end ``` ```ruby -Post.search(where: :foo, includes: :bar).size(1).start(0).query("(and 'content')").query_parser('structured').execute +result = Post.search(where: :foo, includes: :bar).size(1).start(0).query("(and 'content')").query_parser('structured').execute => [#<Post id: 1, content: "content">] +# You can access facets +result.facets +=> {} ``` ### Supported pagination libraries If you want to use other supported pagination libraries, for example, `nazrin-kaminari` generates `Kaminari::PaginatableArray` instead of `Nazrin::PaginatedArray`.