Hi Chris,

Martin, Chris wrote:
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 />.

Well, the field was being tokenized in both cases according to the rules of the analyzer you are using. It just happens that the analyzer you are using tokenizes "a,b,c" as one token and "a, b, c" as three.

Are you using an analyzer that stems terms? If so, you might get some unexpected results in very rare cases. It seems that in this case you should probably want to break the fields up yourself and add them untokenized.

Joe

Reply via email to