[KinoSearch] Finding matching search terms
colossus forbin
colossus.forbin at gmail.com
Sun Dec 30 19:00:32 PST 2007
On 12/30/07, Marvin Humphrey <marvin at rectangular.com> wrote:
> On Sun, Dec 30, 2007 at 04:03:04PM -0800, colossus forbin wrote:
>
> > How do you find out which of the query terms resulted in a particular hit?
>
> This information is not preserved during the scoring process. The scoring
> apparatus feeds doc_num/score pairs into a HitCollector object; that's all
> it ever sees. It doesn't know about what parts of a composite scorer
> contributed to the score, nor how much they contributed.
>
> The potential exists for us to sprinkle explain() methods throughout the
> library, but these would be for debugging and demonstration rather than
> production, as dealing with multi-tiered Explanation objects rather than
> simple ScoreDocs would be expensive.
>
> > Also, would it be possible to find out which of the terms resulted in no
> > hits? I'd hate to have to perform a separate search on each term and then
> > merge the results.
>
> What is the final objective?
I would like to determine if a user has mispelled a term and then
suggest a corrected version. If I was dealing with a single term or
was AND'ing the terms it would be much simpler to handle.
More information about the kinosearch
mailing list