Added Context.isTransientIndexing method to notify indexers that indexing was started for non saved file as a part of the QuerySupport.query() operation.
The indexers which are using IndexingSupport for persistence do not need this information as the IndexingSupport handles transient changes itself. Indexers which are using custom storage should check the transient indexing flag and don't do any persistent changes in case of transient indexing.
Created attachment 133173 [details]
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.
Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss