@@ -0,0 +1,1150 @@
+package kz.kaznu.lucene;%0A%0Aimport kz.kaznu.lucene.index.MessageIndexer;%0Aimport kz.kaznu.lucene.index.MessageToDocument;%0Aimport org.apache.lucene.document.Document;%0Aimport org.apache.lucene.queryparser.classic.ParseException;%0A%0Aimport java.io.IOException;%0Aimport java.util.Scanner;%0A%0A/**%0A * User: Sanzhar Aubakirov%0A * Date: 2/18/16%0A */%0Apublic class Teaser %7B%0A    private static final String teaserTitle = %22%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 %D0%A5%D0%B0%D0%B1%D1%80!%22;%0A    private static final String teaserBody = %22%D0%AD%D1%82%D0%BE %D0%B4%D0%B5%D0%BC%D0%BE%D0%BD%D1%81%D1%82%D1%80%D0%B0%D1%86%D0%B8%D1%8F %D1%80%D0%B0%D0%B1%D0%BE%D1%82%D1%8B %D0%BF%D1%80%D0%BE%D1%81%D1%82%D0%B5%D0%B9%D1%88%D0%B5%D0%B3%D0%BE %D0%BD%D0%B5%D1%87%D1%91%D1%82%D0%BA%D0%BE%D0%B3%D0%BE %D0%BF%D0%BE%D0%B8%D1%81%D0%BA%D0%B0%22;%0A%0A    public static void main(String%5B%5D args) throws IOException, ParseException %7B%0A        final Document teaserDoc = MessageToDocument.createWith(teaserTitle, teaserBody);%0A        final MessageIndexer indexer = new MessageIndexer(%22/tmp/teaser_index%22);%0A        indexer.index(true, teaserDoc);%0A%0A        final BasicSearchExamples search = new BasicSearchExamples(indexer.readIndex());%0A%0A        final Scanner reader = new Scanner(System.in);  // Reading from System.in%0A        System.out.print(%22%D0%92%D0%B2%D0%B5%D0%B4%D0%B8%D1%82%D0%B5 %D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81:%5Ct%22);%0A        final String toSearch = reader.nextLine(); // Scans the next token%0A%0A        search.fuzzySearch(toSearch);%0A    %7D%0A%7D%0A

Add Teaser