You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by David Olson <da...@proxemx.com> on 2012/01/12 21:36:39 UTC

extractterms Output

Hi all - thanks in advance for any help...

I have an app that aggregates keyword performance through incoming messages.
A message comes in, I index it, search the index, and the output the
performance. The two things I'm playing with are either parse the output
from searcher.explain() or iterating through term fequencies.

Typical query is: "Chef's knife" OR basil OR banana OR "frying pan" 

Explain gets me what I need, but the output would have to be parsed to get
the relevant bits. I see the weight and occurences for all three of the
above.

If go through term fequencies, extractterms splits the terms as Chef's,
knife, basil, banana, frying, pan. So, I can get an accurate hit, but term
counts are registered individually.

I had heard that using explain could be slow when things start to scale up,
so I'd rather not have to build a parser to get what I want (or hack the
explanation class).

Why does extractterms do that, even though the search worked on the compound
terms?

-David-

--
View this message in context: http://lucene.472066.n3.nabble.com/extractterms-Output-tp3654833p3654833.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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


Re: extractterms Output

Posted by David Olson <da...@proxemx.com>.
As a follow on, I am using StandardAnalyzer for the doc and query parse.

What I get from Luke is a hit, but positions indicate the terms next to each
other. Is that how I can get the multi-word fequencies?

-David-

--
View this message in context: http://lucene.472066.n3.nabble.com/extractterms-Output-tp3654833p3657930.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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