@@ -0,0 +1,2674 @@
+package com.lucene;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Date;%0A%0A/**%0A * Created by Mahmood on 10/30/2015.%0A */%0Apublic abstract class CommonUI %7B%0A%0A    // this function remove the old Index if exists%0A    public abstract void cleanIndex();%0A%0A    // this function create the Index and put it in indexPath%0A    public abstract void makeIndex(String indexPath, String corePath,String labelPath, String categoryPath, String commentPath);%0A%0A    // this function return list of URLs by search in title of the news%0A    public abstract ArrayList%3CString%3E getURLListByTitleSearch(String query);%0A%0A    // this function return list of URLs by search in title of the news%0A    public abstract ArrayList%3CString%3E getURLListByBodySearch(String query);%0A%0A    // this function return list of URLs by search in body of the news and Date filter on News%0A    public abstract ArrayList%3CString%3E getURLListByBodySearchAndDateRange(String query, Date start, Date end);%0A%0A%0A    // this function return id of comments by search in body of the comment and Date filter on News%0A    public abstract ArrayList%3CString%3E getCommentIDByCommentBodySearchAndDateRange(String query, Date start, Date end);%0A%0A    // this function return list of URLS by search in body of the comment and Date filter on Comments%0A    public abstract ArrayList%3CString%3E getURLListByCommentBodySearchAndDateRange(String query, Date start, Date end);%0A%0A    // List of URLS by label%0A    public abstract ArrayList%3CString%3E getURLListByLabel(ArrayList%3CString%3E labels);%0A%0A    // search Comments by commenter Wild card query should be supported%0A    public abstract ArrayList%3CString%3E getCommentIDByCommneterWildCardQuery(String wildCardQuery);%0A%0A    // return URL list by applying filter on%0A    // 1) labels (if labels is null then the function ignores the label of news)%0A    // 2) categories (if categories is null then the function ignores the category of news)%0A    // 3) newsBodyQuery (if NewsbodyQuery is null then the function ignores the body filtering%0A    // 4)commentBodyQuery (if NewsbodyQuery is null then the function ignores the body filtering%0A    // 5) startNewsDate (if startNewsDate is null then the function return all urls with publish date before than endNewsDate%0A    // 6) endNewsDate (if endNewsDate is null then the function return all urls with publish date after than endNewsDate%0A    // 7) if all filters are null the function should throw an Exception%0A%0A    public abstract ArrayList%3CString%3E getURLListByCommpoundSearch(ArrayList%3CString%3E labels, ArrayList%3CString%3E categories,%0A                                                                  String NewsbodyQuery, String commentBodyQuery, Date startNewsDate, Date endNewsDate);%0A%0A%0A%7D

Add CommonUI Abstract Class to Project