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: StandardTokenizer throws extra exceptions

2005-10-31 Thread Roxana Angheluta
Rob Young wrote: Hi, I'm trying to create another, slightly changed, version of StandardAnalyzer. I've coppied out the source, editted the .jj file and re-built the StandardTokenizer class. The problem I am facing is, when I have all this in eclipse it's telling me that the ParseException is

Re: java on 64 bits

2005-10-27 Thread Roxana Angheluta
iring -- http://tinyurl.com/7m67g On 10/21/05, 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 memo

Re: java on 64 bits

2005-10-21 Thread Roxana Angheluta
//tinyurl.com/7m67g On 10/21/05, 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 addin

Re: java on 64 bits

2005-10-21 Thread Roxana Angheluta
ctory. 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

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 problem

Re: index phrases

2005-06-22 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

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 inter