[pylucene-dev] RangeQueries and missing overloading function

André Søreng andreis at stud.cs.uit.no
Mon Mar 14 02:57:16 PST 2005


Hi!

PyLucene.Field does not have a 'Field method'. So how does one create a date
field in PyLucene?

--- JavaDoc: Class Field
||static Field     Keyword(String name, Date value)
          Constructs a Date-valued Field that is not tokenized and is 
indexed, and stored in the index, for return with hits.
---

Passing a PyLucene.Date() object when constructing a Field gives:
 "No matching function for overloaded 'new_Field'"

Related to this is Range Queries. For instance, I would like to index files
with a size field so that you can specify a file size constraint when 
searching.
Do you have to create the size field as a date field?

André



More information about the pylucene-dev mailing list