[
https://issues.apache.org/jira/browse/LUCENE-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703245#action_12703245
]
Michael McCandless commented on LUCENE-1616:
--------------------------------------------
I still get compilation errors:
{code}
[mkdir] Created dir: /lucene/src/lucene.offsets/build/classes/java
[javac] Compiling 372 source files to
/lucene/src/lucene.offsets/build/classes/java
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/analysis/KeywordTokenizer.java:62:
cannot find symbol
[javac] symbol : method setStartOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAtt.setStartOffset(0);
[javac] ^
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/analysis/KeywordTokenizer.java:63:
cannot find symbol
[javac] symbol : method setEndOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAtt.setEndOffset(upto);
[javac] ^
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/analysis/standard/StandardTokenizer.java:164:
cannot find symbol
[javac] symbol : method setStartOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAtt.setStartOffset(start);
[javac] ^
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/analysis/standard/StandardTokenizer.java:165:
cannot find symbol
[javac] symbol : method setEndOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAtt.setEndOffset(start+termAtt.termLength());
[javac] ^
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/index/DocInverterPerThread.java:56:
cannot find symbol
[javac] symbol : method setStartOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAttribute.setStartOffset(startOffset);
[javac] ^
[javac]
/lucene/src/lucene.offsets/src/java/org/apache/lucene/index/DocInverterPerThread.java:57:
cannot find symbol
[javac] symbol : method setEndOffset(int)
[javac] location: class
org.apache.lucene.analysis.tokenattributes.OffsetAttribute
[javac] offsetAttribute.setEndOffset(endOffset);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 6 errors
{code}
> add one setter for start and end offset to OffsetAttribute
> ----------------------------------------------------------
>
> Key: LUCENE-1616
> URL: https://issues.apache.org/jira/browse/LUCENE-1616
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Analysis
> Reporter: Eks Dev
> Priority: Trivial
> Fix For: 2.9
>
> Attachments: LUCENE-1616.patch, LUCENE-1616.patch, LUCENE-1616.patch
>
>
> add OffsetAttribute. setOffset(startOffset, endOffset);
> trivial change, no JUnit needed
> Changed CharTokenizer to use it
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]