[
https://issues.apache.org/jira/browse/NIFI-7738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17204934#comment-17204934
]
Nissim Shiman edited comment on NIFI-7738 at 9/30/20, 6:02 PM:
---------------------------------------------------------------
This has been compiled and tested on java 8 and java11 for all 4 provenance
repository implementations (noted in comment above) for both indexed fields and
indexed attributes
The only "real" code changes were made to LuceneUtil.java (to handle
WriteAhead, EncryptedWriteAhead and Persistent Provenance Repostories) and
VolatileProvenanceRepository.java
The rest are just involved in propagating the ability to query the "NOT" option
for a given user entered provenance search value from the gui to the backend
query
was (Author: nissim shiman):
This has been compiled and tested on java 8/java11 for all 4 provenance
repository implementations (noted in comment above) for both indexed fields and
indexed attributes
The only "real" code changes were made to LuceneUtil.java (to handle
WriteAhead, EncryptedWriteAhead and Persistent Provenance Repostories) and
VolatileProvenanceRepository.java
The rest are just involved in propagating the ability to query the "NOT" option
for a given user entered provenance search value from the gui to the backend
query
> Provenance Search Events - add feature to allow inverse query
> -------------------------------------------------------------
>
> Key: NIFI-7738
> URL: https://issues.apache.org/jira/browse/NIFI-7738
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Nissim Shiman
> Assignee: Nissim Shiman
> Priority: Major
> Attachments: provenanceSearchEvents_InverseSearch.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> A feature that some NiFi administrators would find useful is doing an inverse
> search on provenance.
> So for example, instead of just being able to search on provenance to find
> provenance with Event Type of SEND
> we also have the option of finding all provenance that does NOT have Event
> Type of SEND.
> The underlying apache lucene already supports Boolean queries.
> Actually, NiFi is already doing a Boolean query.
> But now instead of doing an Occur.MUST, NiFi will also be able to do an
> Occur.MUST_NOT [1]
> There will be a GUI change as well, (see attached snapshot/picture) as there
> will be a "NOT" column header at the far right of the Provenance's Search
> Events pop up, with checkboxes underneath it (i.e. a checkbox to the right of
> each fieldname/value that a user can query provenance events for). If the
> checkbox is checked, then the user is indicating to do an inverse query for
> the value entered.
> [1]
> https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/LuceneUtil.java#L108
--
This message was sent by Atlassian Jira
(v8.3.4#803005)