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 varun sood <vs...@gmail.com> on 2006/02/03 19:31:49 UTC

Frequency Matrix

Hi,
 I am impelementing Lucene to index my website. I would like to know if its
possible to generate a simple frequency matrix?

By frequency matrix I mean, docmuent name on top X-Axis and keywords on left
Y-Axis. and the cells of the matrix will contain the frequency of the
keyword in a particluar document.

I know its very much possible, but its just time which is limited to dig
more in Lucene.

Thanks in advance.
Varun

Re: Frequency Matrix

Posted by varun sood <vs...@gmail.com>.
Hi Chris,
      Thanks a zillion for providing me this quick solution. It worked! It
would not have been possible withiut yur help in such a short time. Is it
your dedicated effort to learn Lucene or some technique?

Thanks,
Varun


On 2/3/06, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> take a look at the TermEnum and TermDoc classes. they should give you all
> the info you need, using psuedo code something like this...
>
>      foreach Term in TermEnum
>         foreach doc in TermDoc
>            record Term, TermDoc.doc, TermDoc.freq
>
>
> : Date: Fri, 3 Feb 2006 13:31:49 -0500
> : From: varun sood <vs...@gmail.com>
> : Reply-To: java-user@lucene.apache.org
> : To: java-user@lucene.apache.org
> : Subject: Frequency Matrix
> :
> : Hi,
> :  I am impelementing Lucene to index my website. I would like to know if
> its
> : possible to generate a simple frequency matrix?
> :
> : By frequency matrix I mean, docmuent name on top X-Axis and keywords on
> left
> : Y-Axis. and the cells of the matrix will contain the frequency of the
> : keyword in a particluar document.
> :
> : I know its very much possible, but its just time which is limited to dig
> : more in Lucene.
> :
> : Thanks in advance.
> : Varun
> :
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Frequency Matrix

Posted by Chris Hostetter <ho...@fucit.org>.
take a look at the TermEnum and TermDoc classes. they should give you all
the info you need, using psuedo code something like this...

      foreach Term in TermEnum
         foreach doc in TermDoc
            record Term, TermDoc.doc, TermDoc.freq


: Date: Fri, 3 Feb 2006 13:31:49 -0500
: From: varun sood <vs...@gmail.com>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Frequency Matrix
:
: Hi,
:  I am impelementing Lucene to index my website. I would like to know if its
: possible to generate a simple frequency matrix?
:
: By frequency matrix I mean, docmuent name on top X-Axis and keywords on left
: Y-Axis. and the cells of the matrix will contain the frequency of the
: keyword in a particluar document.
:
: I know its very much possible, but its just time which is limited to dig
: more in Lucene.
:
: Thanks in advance.
: Varun
:



-Hoss


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