Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 375 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 375 Bytes

luasolr

Lua to Apache Solr connection module

Provides minimalistic interface to solr enabling posting and quering data records

Install with LuaRocks

luarocks install solr

Example

solr = require "solr"
slr = solr.new("gettingstarted")
slr:post{id=1, text="solr rocks"}
docs = slr:query{q="text:solr"}.response.docs
print(docs[1].id) -- 1
slr:delete(1)