List of usage examples for org.apache.lucene.store RAMFile RAMFile
public RAMFile()
From source file:org.karsha.base.DocIndexerTest.java
License:Open Source License
/** * Constructor used when indexing directory is a RAM memory directory, We * need RAM directory because Wso2-Stratoes Server that we used to host * dosen't allow access local files//w w w . j a v a 2 s . com * * @param files- List of Documents converted in to bytes * @param docNames -Corresponding Document names */ public DocIndexerTest(String docContent[], String docNames[]) { this.ramFile = new RAMFile(); this.docNames = docNames; //this.bufPathToIndex= new RandomAccessBuffer() ; this.ramMemDir = new RAMDirectory(); //pathToIndex = new RAMDirectory().toString();;//this.bufPathToIndex.toString() ; // this.files = files; this.filesInText = docContent; //this.queryDocIndex = queryDocIndex ; int len = filesInText.length; this.noOfWordsOfDOc = new int[len]; this.ArrLstSentencesOfDoc = new ArrayList[len]; this.noOfSentencesOfDoc = new int[len]; this.removedTermsOfDOc = new String[len][]; this.freqAfterRemovalOfDoc = new int[len][]; this.curDocNo = 0; //this.termsOfFIBO = fiboTerms ; }