Cannot find implementing class for:org.apache.lucene.analysis.tokenattributes.PayloadAttribute
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
### Description
When I use the highlight function on Android, an error occurs when ((PayloadAttribute)stream.addAttribute(PayloadAttribute.class)) uses the reflection mechanism to obtain the payload. The error message is (Cannot find implementing class for:org.apache.lucene.analysis.tokenattributes.PayloadAttribute). Other lucene functions are normal. I don't know what causes this error. Please help me.
lucene version is:8.11.2
Contributor guide
Research direction
Start by reproducing the Android highlighting failure in Lucene 8.11.2, focusing on the PayloadAttribute.class lookup in stream.addAttribute. Trace the reflection path that reports the missing implementing class and compare it with a working Lucene function; done means the cause is identified and the highlighting path no longer raises this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100