Queries with negated text predicates fail with lucene



With JanusGraph 0.6.0 and Lucene index backend, queries fail if they contain predicate like textNotPrefix, textNotContains:
java.lang.IllegalArgumentException: Relation is not supported for string value: textNotPrefix
        at org.janusgraph.diskstorage.lucene.LuceneIndex.convertQuery(LuceneIndex.java:814)
        at org.janusgraph.diskstorage.lucene.LuceneIndex.convertQuery(LuceneIndex.java:864)
        at org.janusgraph.diskstorage.lucene.LuceneIndex.query(LuceneIndex.java:593)
        at org.janusgraph.diskstorage.indexing.IndexTransaction.queryStream(IndexTransaction.java:110)

If ElasticSearch is used or if there is no index backend, the same query work.
I'm not sure Lucene index can be used for negated queries but the queries should not fails. How can I transform my query to make it work ?



Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.