lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message