This is not trivial.
You should take a look at how solr does it for faceting using
UnInvertedField.

On Wednesday, January 11, 2012, colbacc8 <[email protected]> wrote:
> Hi, this is my first post in this forum! :-)
> I'm Italian and sorry for my bad english :-(
> I developing a search engine  in java with lucene in eclipse.
>
> I've a problem: I run a search for a terms, after I want know the first
five
> keywords in order by frequency on subset of document resulting from
search.
>
> I tried to use TermVectorFreq, but seems more complicated.
>
> there is a simple method for do that?
>
>
> Thank you! :-)
>
> --
> View this message in context:
http://lucene.472066.n3.nabble.com/Problem-High-Term-Frequency-After-Search-tp3651188p3651188.html
> Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
Israel Tsadok | Chief Developer | Omgili
T +972.3.6720970 | F +972.3.6720972 | C +972.52.4745047
[email protected] | www.omgili.com

Reply via email to