jimmejardine / qiqqa-open-source

The open-sourced version of the award-winning Qiqqa research management tool for Windows
GNU General Public License v3.0
380 stars 64 forks source link

upgrade LuceneNet #23

Open GerHobbelt opened 5 years ago

GerHobbelt commented 5 years ago

obsolescence warnings from the MSVC2019 IDE today already:

2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "tessnet2_32, Version=2.0.4.0, Culture=neutral, PublicKeyToken=1550524b5ba07e29, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "AllRules.ruleset".
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(148,60,148,82): warning CS0618: 'StandardAnalyzer.StandardAnalyzer()' is obsolete: 'Use StandardAnalyzer(Version) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneSimilarityQueries.cs(93,25,93,34): warning CS0618: 'TokenStream.Next()' is obsolete: 'The returned Token is a "full private copy" (not re-used across calls to Next()) but will be slower than calling Next(Token) or using the new IncrementToken() method with the new AttributeSource API.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(175,36,175,124): warning CS0618: 'IndexWriter.IndexWriter(string, Analyzer, IndexWriter.MaxFieldLength)' is obsolete: 'Use IndexWriter(Directory, Analyzer, MaxFieldLength)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(210,44,210,91): warning CS0618: 'IndexReader.Open(string, bool)' is obsolete: 'Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(216,17,216,21): warning CS0618: 'Hits' is obsolete: 'see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(216,29,216,64): warning CS0618: 'Searcher.Search(Query)' is obsolete: 'Hits will be removed in Lucene 3.0. Use Search(Query, Filter, int) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(221,21,221,24): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(221,32,221,35): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(253,44,253,91): warning CS0618: 'IndexReader.Open(string, bool)' is obsolete: 'Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(259,17,259,21): warning CS0618: 'Hits' is obsolete: 'see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(259,29,259,64): warning CS0618: 'Searcher.Search(Query)' is obsolete: 'Hits will be removed in Lucene 3.0. Use Search(Query, Filter, int) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(264,21,264,24): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(264,32,264,35): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(318,48,318,95): warning CS0618: 'IndexReader.Open(string, bool)' is obsolete: 'Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(322,21,322,25): warning CS0618: 'Hits' is obsolete: 'see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(322,33,322,66): warning CS0618: 'Searcher.Search(Query)' is obsolete: 'Hits will be removed in Lucene 3.0. Use Search(Query, Filter, int) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(327,25,327,28): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(327,36,327,39): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(351,44,351,91): warning CS0618: 'IndexReader.Open(string, bool)' is obsolete: 'Use Open(Directory, bool) instead. This method will be removed in the 3.0 release.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(359,17,359,21): warning CS0618: 'Hits' is obsolete: 'see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(359,29,359,57): warning CS0618: 'Searcher.Search(Query)' is obsolete: 'Hits will be removed in Lucene 3.0. Use Search(Query, Filter, int) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(363,21,363,24): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneIndex.cs(363,32,363,35): warning CS0618: 'Hit' is obsolete: 'Use TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(647,17,647,114): warning CS0618: 'PriorityQueue.Insert(object)' is obsolete: 'use InsertWithOverflow(Object) instead, which encourages objects reuse.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(703,29,703,56): warning CS0618: 'IndexReader.Open(string)' is obsolete: 'Use Open(Directory, boolean) instead. This method will be removed in the 3.0 release.'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(726,38,726,66): warning CS0618: 'IndexSearcher.IndexSearcher(string)' is obsolete: 'Use IndexSearcher(Directory, bool) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(728,13,728,17): warning CS0618: 'Hits' is obsolete: 'see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(728,25,728,47): warning CS0618: 'Searcher.Search(Query)' is obsolete: 'Hits will be removed in Lucene 3.0. Use Search(Query, Filter, int) instead'
2>W:\...qiqqa\Utilities\Language\TextIndexing\LuceneMoreLikeThis.cs(823,29,823,38): warning CS0618: 'TokenStream.Next()' is obsolete: 'The returned Token is a "full private copy" (not re-used across calls to Next()) but will be slower than calling Next(Token) or using the new IncrementToken() method with the new AttributeSource API.'
2>W:\...qiqqa\Utilities\GUI\Brainstorm\Nodes\NodeControlSceneData.cs(13,16,13,44): warning CS0169: The field 'NodeControlSceneData.current_scale_at_last_resize' is never used
2>W:\...qiqqa\Utilities\Internet\GoogleScholar\GoogleScholarScrapePaperSet.cs(16,24,16,40): warning CS0414: The field 'GoogleScholarScrapePaperSet.paper_set_source' is assigned but its value is never used
2>  Utilities -> W:\...qiqqa\Utilities\bin\Debug\Utilities.dll
GerHobbelt commented 3 years ago

Note source code commit SHA-1: ecf6c3c47292292971d0e905e516b9d04f1f88d4 comment. General direction: pick an original software that's used widely for every technology area, don't care about the language it's written in. (Acceptable deviation from this general approach: if I really like some stuff. Potential example of coolness: Chromely.)

For text search all sane choices are Java-based so we'll need some sort of 'client/server comms' mechanism to interface then, which reduces the choice to prevent NIH: SOLR or ElasticSearch (and then maybe fiddle with them, that's fine with me). Only Python-based Sphinx was another potential but it's pretty fringe if you ask me, as every one and their granny is riding the ES/SOLR train these days, so I'd better hop on the bus too if I have any brains. 😉

SOLR it's gonna be, therefor.

Rest of this elaboration parked at General policy for picking a direction and selecting an "IT solution"