lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Is there a way to get numTokens via search?
Date Tue, 21 Oct 2008 23:11:28 GMT

: I want to be able to get the number of tokens in a certain field.
: Is this possible? Where is this sort of information stored?

generally this info isn't actually recorded in the index -- it's used to 
compute a fieldNorm, and that is recorded.

You might be able to get this by turning on TermVectors, but that's not a 
feature i've played with so i'm not sure off hte top of my head how you 
would do it.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message