API to get Lucene document instead of Jira issue objects from a JQL?


Does anyone know how to get the Lucene document objects from a JQL query instead of Issue objects?


the search results are DocumentIssueImpl - which implement Issue but get values from the document. If you need the actual Document you can get it via reflection… don’t think there is another way if you are using the SearchService or similar APIs.

1 Like

thanks @jechlin for the tip. It worked!