Lucene Javadoc Exception - cause?

2007-02-01 Thread Josh Joy
Hi, I was implementing some calls to Lucene, though was curious if there was some documentation I was missing that indicated why a method throws an exception. Example, IndexReader - deleteDocuments() - what is the root cause as to why it throws IOException? I'm trying to utilize this info to

Re: SpellChecker Index - remove words?

2007-01-11 Thread Josh Joy
er's delete(...) methods. You can pass that delete method a Term where the field name is "word" and the value is the mizpelt word. > > Otis > > - Original Message > From: Josh Joy <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: T

SpellChecker Index - remove words?

2007-01-10 Thread Josh Joy
Hi All, The spellchecker api is very nice to use, and I can easily add words to the index. However, because the words I am adding are from another index that is user generated per se (meaning it may have spelling errors), how can I safely remove words from the spell checker index? If I know the

Re: Multiple Terms, Delete From Index

2006-09-26 Thread Josh Joy
us - two reader.delete(term) calls? > > Otis > > - Original Message ---- > From: Josh Joy <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Tuesday, September 26, 2006 10:04:13 PM > Subject: Multiple Terms, Delete From Index > > Hi All, > >

Multiple Terms, Delete From Index

2006-09-26 Thread Josh Joy
Hi All, I need to delete from the index where 2 terms are matching, rather than just one term. For example, IndexReader reader = IndexReader.open(dir); Term[] terms = new Term[2]; terms[0] = new Term("city","city1"); terms[1] = new Term("state","state1"); reader.delete(terms); reader.close(); A