FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Elasticsearch for the Coldbox Framework

v2.0.5+310 Public

Elasticsearch for the Coldbox Platform

LICENSE

Apache License, Version 2.0.

Installation

Via CommandBox: install cbelasticsearch

Instructions

The elasticsearch module for the Coldbox Platform provides you with a fluent search interface for Elasticsearch, in addition to a CacheBox Cache provider and a Logbox Appender. Both the cache provider and logbox appender rely on Wirebox DSL mappings to the Elasticsearch client. As such additional Wirebox configuration is necessary to use them outside of the Coldbox context.

Requirements

  • Coldbox >= v4.5
  • Elasticsearch >= v5.0
  • Lucee >= v4.5 or Adobe Coldfusion >= v11

Note: Most of the REST-based methods will work on Elasticsearch versions older than v5.0. A notable exception is the multi-delete methods, which use the delete by query functionality of ES5. As such, Cachebox and Logbox functionality would be limited.

Documentation

Read the full documentation for the module and its capabilites at (cbelasticsearch.ortusbooks.com)[https://cbelasticsearch.ortusbooks.com]


Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com


HONOR GOES TO GOD ABOVE ALL

Because of His grace, this project exists. If you don't like this, then don't read it, its not for you.

"...but we glory in tribulations also: knowing that tribulation worketh patience; And patience, experience; and experience, hope: And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. ." Romans 5:5

THE DAILY BREAD

"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12

Dependencies (1)


Dev Dependencies (0)


CHANGELOG

2.0.5

  • Adds the ability to specify an operator to term queries via filterTerm and filterTerms and pass multiple values to filter

2.0.4

  • Lowers the default number of Logstash shards on index to 2, to prevent inheritance of application shard settings
  • Lowers the default number of Logstash replicas to 0, to prevent maximum shard errors
  • Changes the default Logstahs index rotation frequency to weekly

2.0.3

  • Fixes an error in the Logstash appender which could be thrown by a non-string value in the exception object type key

2.0.2

  • Adds additional data and exception information in Logstash appender messages

2.0.1

  • Adds Logstash appender and converts Elasticsearch appender to use Logstash schema for index data
  • Adds a wildcard method to Search builder for wildcard searches on keyword-mapped fields

2.0.0

  • Converts default native client to HyperClient ( native CFML implementation )
  • Removes the deleteMapping method in the main client, as it is no longer supported in ES versions 6.5 and up.
  • Removes support for Adobe Coldfusion 11
  • Removes support for Lucee 4.x
  • Moves previous native JEST Client to cbelasticsearch-jest module.
  • Ends official support for 6.x versions of Elasticsearch
  • Adds cbElasticsearchPreSave and cbElasticsearchPostSave interceptions when saving individual or bulk documents
  • Adds the ability to create, update, read, and delete Elasticsearch pipelines
  • Adds the ability to configure a pipeline for document processing ( e.g. myDocument.setPipeline( 'my-pipeline' ) )
  • Adds the ability to add save query parameters when saving individual documents ( e.g. myDocument.addParam( 'refresh', true ) )
  • Adds the ability to pass a struct of params to bulk save operations (e.g. client.saveAll( documents, false, { "refresh" : true } ) )

1.4.1

  • Fixes an issue where a null value would throw an error when creating a native Java HashMap

1.4.0

  • Adds new search builder methods suggestTerm, suggestPhrase, and suggestCompletion for auto-completion and auto-suggestion queries
  • Adds a throw on error argument, with a default of true, to client reindex() method when waiting for completion
  • Fixes an issue where default shard/replica settings were being overwritten when passing a complete config

1.3.2

  • Modifies search builder methods of filterTerm and filterTerms to return the builder instance ( Issue #43 )
  • Adds a Util component for common inbound and outbound conversions and casting
  • Modifies Document setValue method to return instance, for method chaining ( Issue #40 )
  • Fixes an error when individual documents in a bulk save contained errors ( Issue #44 )

1.3.1

  • Adds responses to task model
  • Adds the ability to provide a transformation script to the client reindex method

1.3.0

  • Adds the ability to pass URL parameters to SearchBuilder-aware client methods. Adds a param( name, value ) supporting method to the SearchBuilder
  • Adds a new Task object which can be refreshed and used in a loop as long-running tasks complete in the background ( e.g. while( !task.isComplete() ) )
  • ( Breaking ) Changes the return type of the deleteByQuery and updateByQuery to return the full API response which may be inspected or used to follow-up on tasks
  • implements a getAllTasks() method in the client, which will return an array of Task objects
  • implements a getTask method in the client to retreive tasks by identifier ( e.g. - [node]:[id] ).
  • implements a getIndices method in the client to retreive a map of indices with stats
  • implements a getAliases method in the client to retreive a map of aliases
  • Resolves Issue #12 - slf4j missing on non-Runwar installations
  • Resolves Issue #17 - implements workarounds and adds documentation on how to configure and use a connection to a secondary elasticsearch cluster

1.2.2

  • Adds fallback attempt when connection pool is unexpectedly closed upstream

1.2.1

  • Adds a soft fail to the version target check when a connection to the ES start page cannot be established

1.2.0

  • Implements compatibility for Elasticsearch v7
  • Adds environment variable detection for default configuration
  • Implements a new AliasBuilder object, which can be used to alias indexes
  • Implements a new reindex() method in the client which allows the ability to reindex
  • Implements new mustExist and mustNotExist methods to the SearchBuilder

1.1.6

  • Reverts to previous versions of HTTP client due to instability and connection expiration issues
  • Adds connection cleanup prior to execution

1.1.5

  • Updates Apache HTTP Client to v4.5.9
  • Adds count() methods to the SearchBuilder and Client

1.1.4

  • Implements url encoding for identifiers, to allow for spaces and special characters in identifiers

1.1.3

  • Implements update by query API and interface

1.1.2

  • Adds compatibility when Secure JSON prefix setting is enabled

1.1.1

  • Updates Java Dependencies, including JEST client, to latest versions
  • Implements search term highlighting capabilities

1.1.0

  • Updates to term and filterTerms SearchBuilder methods to allow for more precise filtering
  • Adds filterTerm method which allows restriction of the search context
  • Adds type and minimum_should_match parameters to multiMatch method in SearchBuilder

1.0.0

  • Adds support for Elasticsearch v6.0+
  • Adds a new MappingBuilder
  • Updates to SearchBuilder to alow for more complex queries with fewer syntax errors
  • Refactor filterTerms to allow other should or filter clauses
  • Add ability to specify _source excludes and includes in a query
  • ACF Compatibility Updates

0.3.0

  • Adds readTimeout and connectionTimeout settings
  • Adds defaultCredentials setting
  • Adds default preflight of query to fix common assembly syntax issues

0.2.1

  • Adds filterTerms() method to allow an array of term restrictions to the result set

0.2.0

  • Fixes pagination and offset handling
  • Adds support for terms filters in match()

0.1.0

  • Initial Release

 

$ box install cbelasticsearch

No collaborators yet.
     
  • {{ getFullDate("Nov 25 2020 03:11 PM GMT") }}
  • {{ getFullDate("Nov 25 2020 03:11 PM GMT") }}
  • 4,544
  • 9,655
  • 6,568