[
https://issues.apache.org/jira/browse/LUCENE-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858157#action_12858157
]
Michael McCandless commented on LUCENE-2393:
--------------------------------------------
Patch looks good Tom -- thanks for cutting over to flex. You could in fact use
the bulk read API here; it'd be faster. But performance isn't a big deal here
:)
Maybe you should require a field instead of defaulting to "ocr"?
Why does GetTermInfo.getTermInfo take a String[] fields (it's not used I think)?
Probably we should cutover to BytesRef here too, eg TermInfoWithTotalTF?
Maybe you could share the code between HighFreqTermsWithTF.getTermFreqOrdered &
GetTermInfo.getTermInfo? (They both loop, summing up the .freq() of each doc
to get the total term freq).
Small typo in javadoc thier -> their.
> Utility to output total term frequency and df from a lucene index
> -----------------------------------------------------------------
>
> Key: LUCENE-2393
> URL: https://issues.apache.org/jira/browse/LUCENE-2393
> Project: Lucene - Java
> Issue Type: New Feature
> Components: contrib/*
> Reporter: Tom Burton-West
> Priority: Trivial
> Attachments: LUCENE-2393.patch, LUCENE-2393.patch, LUCENE-2393.patch
>
>
> This is a command line utility that takes a field name, term, and index
> directory and outputs the document frequency for the term and the total
> number of occurrences of the term in the index (i.e. the sum of the tf of the
> term for each document). It is useful for estimating the size of the term's
> entry in the *prx files and consequent Disk I/O demands
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]