Mercurial Hosting > luan
comparison examples/blog/src/lib/Db.luan @ 1398:67c0e47b5be3
more lucene
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 11 Sep 2019 15:48:49 -0600 |
parents | 0dc9837c16be |
children | 38a1c1b4279a |
comparison
equal
deleted
inserted
replaced
1397:0dc9837c16be | 1398:67c0e47b5be3 |
---|---|
18 end | 18 end |
19 | 19 |
20 function Db.new(lucene_dir) | 20 function Db.new(lucene_dir) |
21 local dir = Io.uri(lucene_dir) | 21 local dir = Io.uri(lucene_dir) |
22 local db = Lucene.index( dir, { | 22 local db = Lucene.index( dir, { |
23 version = "2" | |
23 default_type = Lucene.type.english | 24 default_type = Lucene.type.english |
24 default_fields = {"subject","content"} | 25 default_fields = {"subject","content"} |
25 completer = completer | 26 completer = completer |
26 postgres_spec = postgres_spec | 27 postgres_spec = postgres_spec |
27 } ) | 28 } ) |