AutomatonTermsEnum throws a NPE
Closed this issue · 4 comments
This happens when the regexp has no trailing .*, even when it matches a value. e.g.:
http://localhost:8080/api/docvalues/dv_filename_set/ordered?filter=README
but add a .* and it works. Is this a Lucene bug?
! java.lang.NullPointerException: null
! at org.apache.lucene.index.AutomatonTermsEnum.(AutomatonTermsEnum.java:79)
! at com.github.flaxsearch.resources.DocValuesResource.getOrderedDocValues(DocValuesResource.java:174)
Hm, this does look like a problem with lucene - AutomatonTermsEnum doesn't work with a fixed-string automaton.
As a workaround, maybe we should just always add a .*
to the end of the passed-in filter, making it always be a prefix filter?
I've opened a ticket in lucene: https://issues.apache.org/jira/browse/LUCENE-7627
Is this fixed within the webapp, or just in the UI?
It's fixed in the webapp. Try the example link.