Skip to content
Various SOLR utils
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs/solr
lua
src/sk/dob/search/solr/dih
LICENSE
README.md
build.xml

README.md

solr-utils

Various SOLR utils used by dob.sk services

Utils

SQLArrayTransformer for SOLR DataImportHandler (sk.dob.search.solr.dih.SQLArrayTransformer)

  • split array returned from SQL query (tested with PostgresSQL)
  • fields declared with sql-array="1" will be splitted

Example usage: - Set: transformer="sk.dob.search.solr.dih.SQLArrayTransformer" - Return array from: query="select 1 AS id, ARRAY['sk', 'cz', 'en'] AS lang;" - Add

Scripts for Nginx Lua module

Installation

  • Download & unpack or compile as needed
  • Load in solrconfig.xml: <lib dir="/www/_lib/solr" regex="solr-utils(-\d.+)?\.jar" />
You can’t perform that action at this time.