Why are you saving this? Because if the bitset you're saving has anything to do with, say, filter queries, it's probably useless.
The internal bitsets are often based on the internal Lucene doc ID, which will change when segment merges happen, thus the caution. Otherwise, theres the binary type you can probably use. It's not very efficient since I believe it uses base-64 encoding under the covers though... Is this an "XY" problem? Best, Erick On Wed, Oct 30, 2013 at 8:06 AM, David Philip <davidphilipshe...@gmail.com>wrote: > Hi All, > > What should be the field type if I have to save solr's open bit set value > within solr document object and retrieve it later for search? > > OpenBitSet bits = new OpenBitSet(); > > bits.set(0); > bits.set(1000); > > doc.addField("SolrBitSets", bits); > > > What should be the field type of SolrBitSets? > > Thanks >