This isn't easy to change; it's hardcoded, in oal.index.NormsWriter, to 1.0, and also in SegmentReader, to 1.0 (when the field doesn't have norms stored, but eg someone is requesting them anyway). 1.0 must encode to 124. I suppose we could empower Similarity to define what the "undefined norm value" should be? Wanna make a patch?
Mike On Thu, Dec 3, 2009 at 11:46 AM, Benjamin Heilbrunn <ben...@gmail.com> wrote: > Hi, > > I'm using Lucene 2.9.1 patched with > http://issues.apache.org/jira/browse/LUCENE-1260 > For some special reason I need to find all documents which contain at > least 1 term in a certain field. > This works by iterating the norms array only as long as the field > exists on every document. > For documents without the field the norms array holds the byte-value 124. > Where does 124 come from - and is there a way to change it to an other > value like -128 (0xFF) for not existing fields? > > > Benjamin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org