Fixed bug in deserialization, implemented range queries and direct querying of numeric fields using Lucene.