how to get the number of terms in an index

2006-06-03 Thread Roxana Angheluta
Hello, Is it possible to quickly get the total number of terms from all documents in an Lucene index for a given field? For example IndexReader has a method "int numDocs()", I would need a similar method "int numTerms(String field)". It looks a bit silly to use IndexReader.terms() and count the

Re: Per-token weighting / attribute data in index

2006-06-03 Thread Andrzej Bialecki
Marvin Humphrey wrote: Enabling individual positions to be boosted is indeed one of the main targets of the current discussion. A slightly easier to understand application would be boosting individual tokens according to relative font size. For instance, we might assume that text between tags i