title: Lucene : Search with partial words
body: <p>I am working on integrating Lucene in our application. Lucene is currently working, for example when I am searching "Upload" and there is some text called "Upload" in a document, then it works, but when I search "Uplo", then it doesn't work. Any ideas? </p>
  
  <p>Code :</p>
  
  <pre><code>  Directory directory = FSDirectory.open(path);
                  IndexReader indexReader = DirectoryReader.open(directory);
                  IndexSearcher indexSearcher = new IndexSearcher(indexReader);
  
                  QueryParser queryParser = new QueryParser("contents", new SimpleAnalyzer());
                  Query query = queryParser.parse(text);
                  TopDocs topDocs = indexSearcher.search(query, 50);
                  for (ScoreDoc scoreDoc : topDocs.scoreDocs) {
                      org.apache.lucene.document.Document document = indexSearcher.doc(scoreDoc.doc);
                      objectIds.add(Integer.valueOf(document.get("id")));
                      System.out.println("");
                      System.out.println("id " + document.get("id"));
                      System.out.println("content " + document.get("contents"));
                  }
                  return objectIds;
  </code></pre>
  
  <p>Thank you.</p>