I used the Apache Lucene library to do a search method.
public static List<String> suggestWords(String word, Directory directory, String field) {
blabla
}
Text
[Text]
text
[Next, Text, Heat, Sent, Test, Texts]
Had any of you ever work on this library, I would like to understand why when i search for Text I am getting the good word/words and when i search for text the first suggested word is Next and not Text. Should I always put the first letter of the word to UpperCase before searching the suggestWords list ?
Thank you !