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: java on 64 bits

2005-10-27 Thread Roxana Angheluta
, Roxana Angheluta [EMAIL PROTECTED] wrote: Thank you, Yonik, it seems this is the case. What can we do in this case? Would running the program with java -d32 be a solution? Thanks again, roxana One possibility: if lucene runs out of memory while adding or optimizing, it can

Re: java on 64 bits

2005-10-21 Thread Roxana Angheluta
. These are intermediate files and shouldn't exist for long in a compound-file index. -Yonik Now hiring -- http://tinyurl.com/7m67g On 10/20/05, Roxana Angheluta [EMAIL PROTECTED] wrote: Hi everybody! We have a large Lucene index which gets updated very often. Until recently the java virtual

java on 64 bits

2005-10-20 Thread Roxana Angheluta
Hi everybody! We have a large Lucene index which gets updated very often. Until recently the java virtual machine used to manage the index was on 32 bits, although the program was running on a 64bits station. Last week we changed the java to 64 bits and since then we experience strange

index phrases

2005-06-21 Thread Roxana Angheluta
Dear all, I am using Lucene for indexing documents. I would like to include phrases (of a certain maximum length given as a parameter) in the index. I know this is non-standard for e.g. searching, where a PhraseQuery can be built which makes use of the terms positions. However, I am not