Re: MLTQuery not working; seeking debugging tips

2021-05-21 Thread TK Solr
I don't know why the code block in my first post lost newlines. Let me try again: MoreLikeThisQuery mltQuery = new MoreLikeThisQuery(queryText, new String[] {"source"}, defaultFuzzyAnalyzer, "source"); // defaultFuzzyAnalyzer is a 4-gram analyzer based on NGramTokenFilter. mltQuery.setMinTer

MLTQuery not working; seeking debugging tips

2021-05-20 Thread TK Solr
I am having difficulty using MoreLikeThisQuery with an n-gram analyzer as its analyzer. A test query isn't hitting any document in a unit test case. Is there any debugging method to use to understand why there is not hit? Because the test code uses a RAMDirectory, I cannot use Luke to see if the