Hi Norman, >From what I could tell, UserData only became available in Lucene 2.9. Since CLucene follows JL's quite strictly, this isn't available yet as our latest code branch conforms to 2.3.2.
To have UserData on the index level, you can add a dummy doc (see [1] for some tradeoffs). If you want this as a "field" per document, you can just add it as STORED and not TOKENIZED. HTH Itamar [1] http://www.mail-archive.com/java-u...@lucene.apache.org/msg22294.html -----Original Message----- From: Norman Barker [mailto:norman.bar...@gmail.com] Sent: Saturday, June 05, 2010 2:10 AM To: clucene-developers@lists.sourceforge.net Subject: [CLucene-dev] user data in an index Hi, I would like to store user data in an index so that I can pull out this metadata when needed and also persist it. In Java Lucene I see this (in the lastest version) as a concept of UserData is there a way I can do something similar with CLucene. I am keeping a database and CLucene up to date and I would like to store the last sequence number of the database in a user data field in the CLucene index. Many thanks, Norman ---------------------------------------------------------------------------- -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers