AlreadyClosedException in Lucene 5.2.1

2017-12-01 Thread Kudrettin Güleryüz
Hi everyone, I understand that NFS is not suggested for Lucene indexes. Nevertheless it is the situation where I work and I'd like to make sure if the problem I am having is because of indexes on NFS. Here is the exception: https://gist.github.com/anonymous/e15fd813d9e3789bd3fdf1cba62ff530 /moun

Re: Scorer.iterator() - how to implement correctly

2017-12-01 Thread Adrien Grand
There are many implementations because each query typically needs a custom DocIdSetIterator implementation. It looks like your use-case doesn't need a custom query though, you could use a TermQuery wrapped in a constant-score query (see my reply to the other question you asked). Le ven. 1 déc. 201

Re: COST vs SCORE vs WEIGHT

2017-12-01 Thread Adrien Grand
Your implementation is going to match all documents since the iterator batches all documents. I believe you could do what you want with bultin queries by doing Query params_vendor = new ConstantScoreQuery(new TermQuery(new Term("params_vendor", queryStr)), 5f); and similarly for other queries. L