[KinoSearch] Indexing results

Marvin Humphrey marvin at rectangular.com
Fri May 15 11:42:17 PDT 2009


On Thu, May 14, 2009 at 11:35:07AM +0200, Pasquale Stirparo wrote:

> I'm new to kino and I'm findnig it very useful and easy to use. 

:)

> I built my inverted index customizing the example at
> http://rectangular.com/kinosearch/docs/stable/KinoSearch/InvIndexer.html.
> Now, I would like to know how many times the word "target" is present
> in a document. Or it would be nice to have a kind of chart of the
> occurrence of every word, for example:
> "target1" 25
> "target2" 23
> "target3" 14
> ... and so on

There is not a public interface for accessing that information in the stable
branch.  SVN trunk has one way
(KinoSearch::Search::Compiler::highlight_spans), but it's going to be
undergoing revision soon and it's a little involved.

> Until now I only managed, using the searcher, to know in wich document
> a word is or in how many documents.

Right, finding matching documents is a search engine library's first task.

What's the application?  

Marvin Humphrey





More information about the kinosearch mailing list