30 jan 2007 kl. 01.39 skrev Felix Litman:

We are implementing the "did you mean..." on top of Lucene, leveraging ideas of the "Did you mean Lucene?" article. (Many thanks to Tom White for such a useful and clear article...!)

We are having some difficultiies getting good "did you means" for multiword queries.

Did anyone have success in getting "did you mean..." to work well for multiword queries?

  Any thoughts on the latest recommended approach?

  Thank you,
Felix

There is now pretty good support for multiple words in <https:// issues.apache.org/jira/browse/LUCENE-626>.


addDocument(indexWriter, field, "heroes of might and magic III complete"); addDocument(indexWriter, field, "it might be the best game ever made");

assertEquals("heroes of might and magic", suggester.didYouMean ("hereos of magic and might")); assertEquals("heroes of might and magic", suggester.didYouMean ("hereos of light and magic")); assertEquals("heroes might magic", suggester.didYouMean("magic light heros")); assertEquals("best game made", suggester.didYouMean("game best made"));
    assertEquals("game made", suggester.didYouMean("made game"));
    assertEquals("game made", suggester.didYouMean("made lame"));
    assertEquals(null, suggester.didYouMean("may game"));



--
karl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to