Fusion Index Pipelines Archives - Capture Club

"Stateful" persistence in a Fusion JavaScript Pipeline

One of the most useful features of Nashorn JavaScript in Lucidworks Fusion is the ability to access Java objects within the context of your JavaScript stage. Often times, you’ll want to maintain the state of a variable; or maybe you want to only make a REST call once, and store the result. You can certainly […]

kmcowan 5 May, 2018 0

Making an Authenticated REST Call in a Fusion Pipeline

REST… easy! There are times you just need to reach outside the box and do something. Sometimes that something would be launching a process, or perhaps making an alternate query, or even calling some third party API, like ESRI. If the REST call you’re making doesn’t require authentication, you can do that with a plain, […]

kmcowan 4 May, 2018 0

Multi-threaded JavaScripting Using the Nashorn JavaScript Engine

I have been writing JavaScript for enterprise applications for more than 20 years. From that statement, it’s easy to discern that I’ve been a JavaScript advocate for a long, long time. JavaScript is a truly unique language, sporting qualities found in both procedural and functional languages. Despite this, there has always been one glaring missing […]

kmcowan 3 May, 2018 0

Extracting Values from Element Attributes using Jsoup and a JavaScript Stage

While Fusion comes with built-in Jsoup selector functionality, it is limited in its extraction capability. If you want to do something like extract attribute values — in particular attribute values with special characters or empty spaces in the values, you’ll need to do a custom JavaScript stage and implement the extraction there. To accomplish this: […]

Making Lucidworks Fusion Work For You: Custom Parsing and Index Pipelines

Out-of-the-box, Lucidworks FusionĀ® does a great many tasks remarkably well. Every now and then, however, you come across an issue that may take a little extra effort to index. What I’ll describe below, in this particular case, is a way to circumvent the Fusion parser and spin up your own custom PipelineDocument in an Index […]

kmcowan 26 April, 2018 0