Re: Knn classifier doesn't work

2017-09-19 Thread Tommaso Teofili
hi Alessandro, yes please, feel free to open a Jira issue, patches welcome ! Tommaso Il giorno lun 18 set 2017 alle ore 14:30 alessandro.benedetti < a.benede...@sease.io> ha scritto: > Hi Tommaso, > you are definitely right! > I see that the method : MultiFields.getTerms > returns : > if (term

Re: Knn classifier doesn't work

2017-09-18 Thread alessandro.benedetti
Hi Tommaso, you are definitely right! I see that the method : MultiFields.getTerms returns : if (termsPerLeaf.size() == 0) { return null; } As you correctly mentioned this is not handled in : org/apache/lucene/classification/document/SimpleNaiveBayesDocumentClassifier.java:115 org/apac

Re: Knn classifier doesn't work

2017-09-02 Thread Tommaso Teofili
it would sound like none of the docs in your index has the "class" field, in your case Tags, whereas classification needs some bootstrapping (add some examples of correctly classified docs to the index beforehand). On the other hand the naive bayes implementation has definitely a bug as the MultiFi

Knn classifier doesn't work

2017-08-30 Thread Adriano
Hello, I'm trying to use the knn classifier by following this link: https://wiki.apache.org/solr/SolrClassification I use this config : classification and Title,Body Tags Tags knn 2