Re: Implement an IndexSearcher which never returns any documents

2017-09-11 Thread Adrien Grand
You could create a `new IndexSearcher(new MultiReader());` Le sam. 9 sept. 2017 à 19:40, Mitchell Stevenson < mitchell.stevenson...@gmail.com> a écrit : > I need to implement an IndexSearcher for Lucene 7 which never returns > any documents. > Is the following implementation suitable for this? Th

Re: backward compatibility

2017-09-11 Thread Adrien Grand
Yes it should be usable. You said you got a "similar" error, can you share it? Le jeu. 7 sept. 2017 à 04:53, 袖宏治 a écrit : > Hello, it is sode. > I created an index in lucene 6.1. I want to use the index created in lucene > 6.1 with lucene 6.6. > In lucene 6.6 I looked up index in lucene 6.1. Th

RE: How do I get lucene to score a given document

2017-09-11 Thread Uwe Schindler
Hi, There is an explain functionality for single documents available for that. Check IndexSearcher.explain(). Otherwise a filter is your only chance. It should not be slow, as selective filters (applied with BooleanClause.Occur.FILTER, maybe your filter is the problem: if you have many IDs to