Hello,
I’m trying to implement an indexer and searcher for a custom-field that support the IS EMPTY/IS NOT EMPTY operations. The indexer stores issue keys in the docs.
When I create the custom-field I assign it for a specific context (project and issue type/s).
I am having an problem where issues that are part of the same assigned project but out of context (different issue type from what was assigned to the custom-field), appear as non-empty when searching with IS NOT EMPTY for the custom-field. Although they don’t even have the custom-field.
Checking the lucene docs I found that such issues set an empty (or null) value for the custom-field. I expected no lucene field for such issues to even appear.
Further investigating I notice that for such issues my searcher/indexer implementation is not used, therefore these empty values are stored.
What could I be doing wrong? maybe I should use an existing searcher?
*Using Jira 9.4.25