Commits

Juan Carlos Picado Herrera  committed 8635bf7

Fixed compile error

  • Participants
  • Parent commits 76c55e9

Comments (0)

Files changed (1)

File encuestame-business/src/main/java/org/encuestame/business/service/SearchService.java

 import org.apache.lucene.util.Version;
 import org.encuestame.business.service.imp.SearchServiceOperations;
 import org.encuestame.persistence.domain.survey.Poll;
-import org.encuestame.search.utils.Search;
 
 /**
  * Search Service.
 public class SearchService extends AbstractIndexService implements
         SearchServiceOperations {
 
-    private Search search;
-
     public void indexDocument(final String indexDirPath,
             final String indexDirStore) throws IOException {
-        search.getIndexer(indexDirPath);
-
     }
 
     public void searchContent(final String dirPath) {
         return doc;
     }
 
-    public void indexPoll(Poll poll, String path) throws IOException {
-        IndexWriter writer = search.getIndexer(path);
-        try {
-            Document doc = generateDocumentFromPoll(poll);
-            writer.addDocument(doc);
-            writer.commit();
-            writer.optimize();
-        } finally {
-            writer.close();
-        }
-    }
 
 }