lookupAllIndexWords -empty set -certain words

Help
userlite
2008-02-22
2013-04-29
  • userlite
    userlite
    2008-02-22

    Hi,

      For certain words such as "online", lookupAllIndexWords call is returning empty results.

    If I lookup word "online" on Wordnet site, it gives results :
       # S: (adj) on-line, online (on a regular route of a railroad or bus or airline system) "on-line industries"

    When I try:
    IndexWordSet indexWordSet = (Dictionary.getInstance().lookupAllIndexWords("on-line"));   --> returns correct non-null results
    or
    IndexWord word = (Dictionary.getInstance().lookupIndexWord(POS.ADJECTIVE, "on-line");   --> returns correct non-null results

    but when I try following:
    IndexWordSet indexWordSet = (Dictionary.getInstance().lookupAllIndexWords("online"));   --> returns empty set
    or
    IndexWord word = (Dictionary.getInstance().lookupIndexWord(POS.ADJECTIVE, "online");    --> returns null

    How should I resolve this? Thank you.