Mercurial Hosting > luan
diff src/luan/modules/lucene/Versioning.luan @ 1422:e48290f3d9fb
better quoting
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Nov 2019 16:28:51 -0700 |
parents | 87a3738d7cc5 |
children |
line wrap: on
line diff
--- a/src/luan/modules/lucene/Versioning.luan Sat Oct 26 22:28:46 2019 -0600 +++ b/src/luan/modules/lucene/Versioning.luan Sun Nov 17 16:28:51 2019 -0700 @@ -35,7 +35,7 @@ -- hack to deal with latest changes function Versioning.a_big_step(db) db.indexed_fields["id index"] = Lucene.type.string - db.advanced_search( Lucene.literal"id index" .. ":*", function(_,doc_fn) + db.advanced_search( Lucene.quote"id index" .. ":*", function(_,doc_fn) local doc = doc_fn() for field, value in pairs(copy(doc)) do if matches(field," index$") then @@ -49,7 +49,7 @@ db.save(doc) end ) db.indexed_fields["type index"] = Lucene.type.string - db.delete( Lucene.literal"type index" .. ":*" ) + db.delete( Lucene.quote"type index" .. ":*" ) end return Versioning