TrestleAdmin / trestle-search

Search plugin for the Trestle admin framework
https://trestle.io
GNU Lesser General Public License v3.0
28 stars 11 forks source link

MCE-15993 Adds elasticsearch adapter - Adds elasticsearch query build… #42

Closed MikeBlom closed 2 years ago

MikeBlom commented 2 years ago

Sample code on how this is leveraged:

admin.pagination_options = { per: 50 } adapter.include Trestle::Search::ElasticsearchAdapter adapter.include Trestle::Search::ElasticsearchQueryBuilder

search do |query| es_query = build_string_query(query: query) es_query = build_sort_query(query: es_query, params: params) collection.search(es_query) end

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Mike Blom seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.