FAQ
I would try adding this (or your regex)
<ZIPCODE: <DIGIT><DIGIT><DIGIT><DIGIT><DIGIT> (("-" <DIGIT><DIGIT><DIGIT><DIGIT>)|(<DIGIT><DIGIT><DIGIT><DIGIT>))

between the EMAIL and HOST line or something,


And change this:

org.apache.lucene.analysis.Token next() throws IOException :
{
Token token = null;
}
{
( token = <ALPHANUM> |
token = <APOSTROPHE> |
token = <ACRONYM> |
token = <COMPANY> |
token = <EMAIL> |
token = <HOST> |
token = <NUM> |
token = <CJ> |
token = <EOF>
)
{
if (token.kind == EOF) {
return null;
} else {
return
new org.apache.lucene.analysis.Token(token.image,
token.beginColumn,token.endColumn,
tokenImage[token.kind]);
}
}
}

TO:

org.apache.lucene.analysis.Token next() throws IOException :
{
Token token = null;
}
{
( token = <ALPHANUM> |
token = <APOSTROPHE> |
token = <ACRONYM> |
tokrn = <ZIPCODE>
token = <COMPANY> |
token = <EMAIL> |
token = <HOST> |
token = <NUM> |
token = <CJ> |
token = <EOF>
)
{
if (token.kind == EOF) {
return null;
} else {
return
new org.apache.lucene.analysis.Token(token.image,
token.beginColumn,token.endColumn,
tokenImage[token.kind]);
}
}
}
- Mark
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedJan 12, '07 at 1:13a
activeJan 13, '07 at 1:01a
posts6
users3
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase