lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "crocket (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4891) Only a part of CategoryPath is recorded if I add "me" category.
Date Sat, 30 Mar 2013 03:29:15 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13617968#comment-13617968
] 

crocket commented on LUCENE-4891:
---------------------------------

Update.1

In https://issues.apache.org/jira/browse/LUCENE-4882?focusedCommentId=13614616&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13614616
you mentioned that "So you can choose between overriding FacetIndexParams.getCategoryListParams()
to always return a CLP which specifies OP.ALL_PARENTS for all categories, or extend CLB and
apply the fix locally.", so I initially overrode FacetIndexParams.getCategoryListParams()
to always return a CLP which specifies OP.ALL_PARENTS for all categories and thought that
I applied LUCENE-4882.patch to my code. But I was wrong.

Overriding FacetIndexParams.getCategoryListParams() doesn't fix this issue, but applying LUCENE-4882.patch
except the part for "TestFacetsCollector.java" locally fixes the issue completely.
So I updated git://snowberry.me/LuceneTest.git to make it reflect my discovery.

With LUCENE-4882.patch applied, the order of categories is not important.
                
> Only a part of CategoryPath is recorded if I add "me" category.
> ---------------------------------------------------------------
>
>                 Key: LUCENE-4891
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4891
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>    Affects Versions: 4.2
>            Reporter: crocket
>
> If I add [type/CHAT, me, network/hanirc/chan/#sdgsdgsd] as "categories" to a document
and add the document to a writer as below, Only "network/hanirc/chan", not "network/hanirc/chan/#sdgsdgsd
"is" recorded into a taxonomy directory. type/CHAT and me are recorded well. I confirmed it
with a test.
> FacetFields ff = new FacetFields(taxoWriter);
> ff.addFields(doc, categories);
> nrtWriter.addDocument(doc);
> If I add [type/CHAT, network/hanirc/chan/#sdgsdgsd] to a document, everything is recorded
fine.
> What's wrong with "me" category?
> You could clone git://snowberry.me/ZeroIrcLog.git and read the code if you want.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message