[
https://issues.apache.org/jira/browse/SOLR-7739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098609#comment-15098609
]
David de Kleer edited comment on SOLR-7739 at 1/14/16 6:43 PM:
---------------------------------------------------------------
Hi Alessandro,
It turned out there was no problem at all, it was more that I didn't see that
labels were being added (or not) in SOLR's output/the web interface. That's why
I added a print statement and a slight modification to the
ClassificationUpdateProcessor, something like
{code:java}
...
score = classificationResult.getScore();
System.out.println("(ClassificationUpdateProcessor) Found class " +
assignedClass + " with score " + score + " for this document.");
doc.addField("label_" + assignedClass, score);
...
{code}
for example. The print statement and the searchable score (below 1) gave me an
indication that labels were really being added. So again, it turned out it
wasn't really a problem. And thanks again for updating the patch! (y)
EDIT: In fact, all of this means that I just wanted to make the distinction
between annotations and automatically added labels/categories a bit more clear.
With kind regards,
David
was (Author: daviddekleer):
Hi Alessandro,
It turned out there was no problem at all, it was more that I didn't see that
labels were being added (or not) in SOLR's output/the web interface. That's why
I added a print statement and a slight modification to the
ClassificationUpdateProcessor, something like
{code:java}
...
score = classificationResult.getScore();
System.out.println("(ClassificationUpdateProcessor) Found class " +
assignedClass + " with score " + score + " for this document.");
doc.addField("label_" + assignedClass, score);
...
{code}
for example. The print statement and the searchable score (below 1) gave me an
indication that labels were really being added. So again, it turned out it
wasn't really a problem. And thanks again for updating the patch! (y)
EDIT: In fact, all of this means that I just wanted to make the distinction
between annotated and automatically added labels/categories a bit more clear.
With kind regards,
David
> Lucene Classification Integration - UpdateRequestProcessor
> ----------------------------------------------------------
>
> Key: SOLR-7739
> URL: https://issues.apache.org/jira/browse/SOLR-7739
> Project: Solr
> Issue Type: New Feature
> Components: update
> Affects Versions: 5.2.1
> Reporter: Alessandro Benedetti
> Assignee: Tommaso Teofili
> Priority: Minor
> Labels: classification, index-time, update.chain,
> updateProperties
> Attachments: SOLR-7739.patch, SOLR-7739.patch
>
>
> It would be nice to have an UpdateRequestProcessor to interact with the
> Lucene Classification Module and provide an easy way of auto classifying Solr
> Documents on indexing.
> Documentation will be provided with the patch
> A first design will be provided soon.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]