Re: implementing a TokenFilter for aliases

2003-12-05 Thread Doug Cutting
Position increments are for relative token positions. A position increment of zero means that a token is logically at the same position as the previous token. A position increment of one means that a token immediately follows the preceding token in the stream, it's the next token to the right

RE: implementing a TokenFilter for aliases

2003-12-05 Thread Allen Atamer
ning after aliasfilter is run Allen > -Original Message- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: December 5, 2003 12:23 PM > To: Lucene Users List > Subject: Re: implementing a TokenFilter for aliases > > On Friday, December 5, 2003, at 11:59 AM, Allen

Re: implementing a TokenFilter for aliases

2003-12-05 Thread Erik Hatcher
On Friday, December 5, 2003, at 11:59 AM, Allen Atamer wrote: Below are the results of a debug run on the piece of text that I want aliased. The token "spitline" must be recognized as "splitline" i.e. when I do a search for "splitline", this record will come up. 1: [173] , start:1, end:2 1: [mis

RE: implementing a TokenFilter for aliases

2003-12-05 Thread Allen Atamer
Erik, Below are the results of a debug run on the piece of text that I want aliased. The token "spitline" must be recognized as "splitline" i.e. when I do a search for "splitline", this record will come up. 1: [173] , start:1, end:2 1: [missing] , start:1, end:6 2: [hardware] , start:9, end:7 3:

Re: implementing a TokenFilter for aliases

2003-12-04 Thread Erik Hatcher
On Thursday, December 4, 2003, at 05:00 PM, Allen Atamer wrote: This is the code that I have so far for the next Method within AliasFilter. After reading some posts, I also got the idea to call setPositionIncrement(). Neither way works, because when I search for the alias, no search results come

implementing a TokenFilter for aliases

2003-12-04 Thread Allen Atamer
The FAQ describes implementing a TokenFilter for applying aliases. I have a trouble accomplishing this. This is the code that I have so far for the next Method within AliasFilter. After reading some posts, I also got the idea to call setPositionIncrement(). Neither way works, because when I searc