Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/Lucene.luan @ 624:8281a248c47e
add lucene highlighter
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 07 Jan 2016 18:46:07 -0700 |
parents | 1a53333eb4d5 |
children | a3c1e11fb6aa |
comparison
equal
deleted
inserted
replaced
623:d592bf0947a9 | 624:8281a248c47e |
---|---|
40 index.save = java_index.save | 40 index.save = java_index.save |
41 index.update_in_transaction = java_index.update_in_transaction | 41 index.update_in_transaction = java_index.update_in_transaction |
42 index.close = java_index.close | 42 index.close = java_index.close |
43 index.ensure_open = java_index.ensure_open | 43 index.ensure_open = java_index.ensure_open |
44 index.next_id = java_index.nextId | 44 index.next_id = java_index.nextId |
45 index.highlighter = java_index.highlighter | |
45 | 46 |
46 function index.search(query, from, to, sort) | 47 function index.search(query, from, to, sort) |
47 local results = {} | 48 local results = {} |
48 local function fn(i,doc_fn) | 49 local function fn(i,doc_fn) |
49 if i >= from then | 50 if i >= from then |