Hi,
I am working on a program to index/search chemical element/compound. Say I
write an analyzer to filter out chemical terms, such as H2O. I noticed that I
can specify a tocken's type. Can I construct a token as
new Token ("H2", start, end, "chem");
My questions is
How do I search all the to
Thanks Pierrick.
Are you say that I should construct Token in analyzer like
new Token ("chem_H2O", 100, 103, "chem");
note that chem_ is added prefix to H2O, and 100 to 103 is length of H2O rather
than chem_H2O?
I also have some further problem and not sure if can be solved by this approch.
I