Hi Joe, I do that already. My problem is that the field is not being tokenized.
Say I have the following: String guids = "4c1052c1-62d8-4369-9134-984f4d68c556,64867646-215e-41f7-8c9c-cd797b13bc58"; I store that in a field named, "directories". But, the value is stored literally as it is written above. In order to search by one of the guids, I'd like to be able to store both Guids as tokens. Oh crap!!! I just realized that they weren't being tokenized because there is no space between the comma and the guid! <slapHead />. I did a test and it works as suspected. Thanks for your help (attempted at least. hah) Chris Martin Software Developer – myKB.com http://mykb.com [EMAIL PROTECTED] +1 480-424-6952 x124 -----Original Message----- From: Joe Shaw [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 2:15 PM To: [email protected] Subject: Re: Help With Tokenization Hi, On Fri, 2007-03-16 at 16:23 -0400, Martin, Chris wrote: > I have a field that I currently store as a comma separated list of > Guid objects. This field is crucial to our search strategy. > > I can't figure out how to get those guid objects to be tokenized. I'm > playing with the idea of a custom Analyzer and TokenFilter to try and > do this but, I'm not sure that's the way to go here. To tokenize a field, pass in Field.Index.TOKENIZED to the constructor. You'll also need to pass an analyzer to the IndexWriter constructor. Or do you mean something more specific? Joe
