Added new field TypeId to dependency index for exact type searching The new field is String-valued and contains a concatenation of the resource ids of a resource's type hierarchy, separated by a whitespace, for example `41233 12423 1233`. This field uses the WhitespaceAnalyzer, i.e. its contents are tokenized by whitespace and thus searches like `TypeId:41233` will return exactly those resources that are instances of the type resource `41233`. This commit also simplifies and fixes some of the existing index searching code to use this new field instead of the old `Types` field for type-based searching. If existing product-code uses the indexing facilities directly and not through `QueryIndexUtils` or `Instances`, such code will also require changes to take this new field into use. See `IndexQueries` to form queries related to this field. gitlab #438 Change-Id: I9992ad32a9e6da41c88641e60fed6e1793253738
Replace instantiations of DatabaseException in indexing gitlab #92 Change-Id: I95d64ec2c6bcda5fbc5a338fcb4d0ecc6a962f15
Removed contact application support prints Unnecessary contact application support on error messages removed. gitlab #76 Change-Id: I6f3940fa5443e52eb7c9e21c7578579158b468c3
Worked around Windows FS problems in IndexedRelationsSearcherBase See https://blogs.msdn.microsoft.com/oldnewthing/20120907-00/?p=6663/ gitlab #19 Change-Id: Ia12c848aa75836597121eadec05061ea23bb1240
Removed redundant Files.exists/isDirectory checks refs #7847 Change-Id: Id2f5936a801ece1828c13e29662c15d61b04abaa
Improved network-drive-resilience in index directory creation In a product, the removed Files.exists(p) && !Files.isDirectory(p) code threw an exception because the examined path was not guaranteed to be in a coherent state at the time of examination but Files.createDirectories would still take care of throwing any exceptions if there were any problems in creating the directory. The worst thing was that this exception was hidden and not even logged. Luckily a problem case forced the find. refs #7845 Change-Id: Id44c5118ad97fbb83dcec87f77717185d3e402a1
Improve startup time for fresh or rollback'd session in index writing refs #7806 Change-Id: I44ea1e0972bfd360b6af44dbbe62e934e06c59e0
IndexedRelationsSearcherBase possible deadlock with semaphore refs #7805 Change-Id: I0a3e7d03b648d2b03b187baf171c0c95b4b7abb9
Remove debug printing from indexing & change debugging level to INFO refs #7785 Change-Id: Idc1bb5aba5dfa217449e2c587e03d67016b8d8b1
Add logging to indexing & replace File-API with NIO Path-API refs #7785 Change-Id: I38a1d2fe7425bf06c97e1178c7b26b3566f1126b
Use java.file.nio API Files.createDirectories instead of File.mkdirs This should at least provide better diagnostics in case of unexpected failure. refs #7600 Change-Id: Ib5fb10798257cd35d3d8c3c533574b17a62e715b
Mark Lucene Index Creator threads daemons Also protect against a potential NPE in IndexedRelationsSearcherBase.initializeIndexImpl. refs #7553 Change-Id: I516eecfa758b532b824693e9c6a2449a18a65a69
Fixed all line endings of the repository I followed the instructions in http://stackoverflow.com/a/1511273 git rm --cached -r . git config core.autocrlf true git diff --cached --name-only -z | xargs -0 git add git commit -m "..." Change-Id: I4920748df8f53c221fc2f643e991b66aea5697e0
Sync git svn branch with SVN repository r33308. refs #6742 refs #6741
Sync git svn branch with SVN repository r33249.
Migrated source code from Simantics SVN