Closed eltimster closed 7 years ago
Thanks for reporting this issue. They are not bug from my perspective . You should post in our google group for further discussion. I put my short answer as below.
To analysis different corpus, you can create two different solr core directory with corpus-specific setting. You don't need always purge solr index every time. If you want to try different ATE algorithm, you DON NOT need to run candidate extraction again. Corpus directory is an option for both embedded mode and plugin mode. For embedded mode, if "-corpusDir" is not provided, JATE will skip term candidate extraction step and directly run term scoring, ranking and exporting over the provided solr core directory. For plugin mode, there is a 'extraction' option in 'solrconfig.xml'.
From the solr exception you are reporting, i suspect that your solr core index are not clean. You can check if there is a write.lock file there. You should check whether JATE/SOLR process is killed and simply remove all files in data directory. This problem happens usually because that the solr process is not shutdown or killed successfully. You can also simply manually remove the write lock for the unexpected situation provided that your solr index is not corrupted and you don't want to re-index the corpus.
For concurrent process/indexing for large corpus, there are many ways to scale up/out solr. In large scale case, jate embedded mode is not the good choice. You should go for plugin mode and looking into how to set up solr cloud server, for instance.
Note that JATE is not intended simply as an app. We make it easily to run and do the demo. It is designed and developed as a library to work with Apache Solr. You can extended it with your ATE algorithm based on Solr framework.
I am trying to run JATE on different corpora, but found that it seems to incrementally add to the SOLR index when it indexes a new corpus, meaning I get terms from not just the corpus of interest, but the union of all corpora processed to that point. My solution to the problem has been to
rm
purge files from the relevantdata/index
file, but this is now causing an exception:2016-10-25 09:24:12 ERROR TransactionLog:567 - Error: Forcing close of tlog{file=/home/tim/forum-style/jate-2.0-beta.1/testdata/solr-testbed/ACLRDTEC/data/tlog/tlog.0000000000000004167 refcount=2}`
Is there a clean way to do what I want to do?
Also, by way of note, the lack of support for concurrent processes (also caused by SOLR only wanting one JATE indexer running at a time) is a real bottleneck ...