Issues

Select view

Select search mode

 
50 of 208

Spell check functionality

Description

From Emmanuel:

  • more than one field and even more than one index should be the source of the dictionary

  • declaring which field is part of a dictionary should be declarative @AddToDictionary(name="main-dictionary")
    (with probably an optional field name(s))

  • for a given dictionary name, we need to associate an index and probably a field prefix (to share the same index
    for all dictionaries). This couold be by annotations or in the configuration (not sure)

  • this index should be kept like any other DirectoryProvider in the HSearch intrastructure (we could then reuse
    ReaderProvider internally and don't have leaks).

  • we will probably add a manual dictionary reindex method and the SpellChecker API should be in the SearchFactory.
    sf.getDictionary("main-dictionary").spellcheck(word, suggestion);
    sf.getDictionary("main-dictionary").spellcheck(word, suggestion, entity, properties...); //not sure how useful is this one really
    sf.getDictionary("main-dictionary").reindex();

this needs to be refined.

Details

Assignee

Reporter

Components

Priority

Created September 17, 2008 at 9:58 PM
Updated September 25, 2023 at 2:48 PM

Activity

Show:

Sanne GrinoveroSeptember 28, 2012 at 7:22 PM

We should have a look into DirectSpellChecker, a new feature of Lucene4 in which a separate index isn't needed.

Sanne GrinoveroJune 26, 2011 at 5:42 PM

ping John This issue is often requested on the forums too (in addition to votes here), do you think you might have some time on it this summer? We're baking Hibernate Search 4.0 so it might be easier now if you need to change some API.

Emmanuel BernardOctober 8, 2010 at 9:44 PM

John, any chance you could resuscitate this one for 3.3 (~4 weeks timeframe)

Emmanuel BernardApril 8, 2010 at 2:45 PM

We'll need to move it for 3.3, we did not have time to polish this idea.

NisseaFebruary 12, 2010 at 1:06 PM

Any new updates? Very interesting indeed

Flag notifications