RE: Adding stem AND original term

2006-06-28 Thread Robert Haycock
Stupid me. It was working fine. I hadn't called super(in) so the call to stream.close() in DocumentWriter was obviously failing!!! Rob. -Original Message- From: Robert Haycock [mailto:[EMAIL PROTECTED] Sent: 28 June 2006 15:04 To: java-user@lucene.apache.org Subject: RE: Adding

RE: Adding stem AND original term

2006-06-28 Thread Robert Haycock
he end of the tokens. You'll need to implement some kind of buffering mechanism - check out the custom analyzers (like the SynonymAnalyzer) in the Lucene in Action code - http://www.lucenebook.com - for examples. Erik On Jun 28, 2006, at 8:52 AM, Robert Haycock wrote: > Hi,

Adding stem AND original term

2006-06-28 Thread Robert Haycock
Hi, I started using the EnglishStemmer and noticed that only the stem gets added to the index. I would like to be able to add both to give me a stem search and an exact search capability. My first attempt has been to write my own stemming filter. The idea being that the first pass would get the

CJKAnalyzer - does it work?

2006-06-15 Thread Robert Haycock
Hi, I have a very simple example. An IndexWriter (Lucene 1.9.0) with CJKAnalyzer (latest version as of today). A Chinese friend of mine as given me a sentence and a word that appears in that sentence, eg: "C1C2C3C4C5C6C7C8" where the word is "C3C4". Here's code segment: IndexWriter writer = n

RE: Adding Fields to Documents with UnStored Fields - crazy scheme?

2006-06-09 Thread Robert Haycock
Hi Bob, No idea if this would work BUT... If the old index is optimized then you might be able to iterate through all the docs in your old index (sorted by doc id) and for each iteration add the corresponding doc to the new index so it has a matching doc id. The idea being that after searching on

RE: Property comparison possible??

2006-06-09 Thread Robert Haycock
He he, nice comparison! Cheers for the advice. Rob. -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: 09 June 2006 08:00 To: java-user@lucene.apache.org Subject: RE: Property comparison possible?? : Is it possible to perform a search using fields instead of terms

Property comparison possible??

2006-06-08 Thread Robert Haycock
Is it possible to perform a search using fields instead of terms, eg. like this sql: SELECT col1, col2 FROM table1 WHERE col1 = col2 Or is this something that might be going on the whiteboard? Thanks, Rob.