Sunday, 15 February 2015

java - Finding the occurrence number of searched word from indexed content using lucene 3.6.1 -


I'm new to Lucene, I searched for the number of words searched from indexed content using Lucene 3.6.1

First I list the document files and search from that indexed files.

Can anyone tell me how to do this?

Thanks in advance.

Resumed using the following code: `

 for  (score dock score dock: score docs) {wordfrack vector [] word v = reader.gate timeframe vector (score dock dok); Int termfreak = 0; For {int xy = 0; xy & lt; termsV.length; xy ++} {string [] words = terms [xy] .getTerms (); Int [] termFreqs = termsV [xy] .getTermFrequencies (); Int TermCount = 0; Int count = 0; {String (string str: word) for {if (str.equalsIgnoreCase (queryString)} {termcount = count; } Calculate ++; } Termfrec = termrefraction [termcount]; }}  

`


No comments:

Post a Comment